(ALL IN JAVA)
3 stacks in one array: How to implement 3 stacks in onearray?
Note: To implement 3 stacks we keep the following information. •The index of the first stack (Topi): this indicates the size of thefirst stack. • The index of the second stack (Top2): this indicatesthe size of the second stack. • Starting index of the third stack(base address of third stack). Top index of the third stack.
Please write a java program. Thanks a lot!!!!
Expert Answer
An answer will be send to you shortly. . . . .