Assume you have a stack with operations: push(), pop(),isEmpty(). How would you use stacks methods to simulate a queue inparticular, enqueue() and dequeue()? You are allowed to use anotherstack. Please write in java, thank you
Expert Answer
An answer will be send to you shortly. . . . .