arrayImpOfStack.java how to reverse number in output?

I need to write arrayImpOfStack.java then write a main method to read a sequence of numbers and using the stack operation print them in reverse order How to reverse number in output ? I have 2 class …

Not displaying elements from stack

So I have written this JAVA-program for stack and the problem is I cant display the elements using the display() method which I used in the code. here is my Stack class. public class Stack { //members …