can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues

I'm confused as to what you mean.

You do realise that you don't need a queue to make a stack.

Or have you been explicitly asked to create a stack using two queues. Now that's different matter?

can any one help me with the code for the pop & push methods in the class that implement a Stack with two Queues

Yes, let's see you start first.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.