/* Stack of integers */ public class Stack{ /* declare member variables to represent a linked list of integers */ //creates an empty stack Stack(){ /* write the body of the constructor */ } //returns the top element of stack //this is the most recently pushed element int top(){ /* write body of this method */ } //adds x to top of the stack. void push(int x){ /* write body of this method */ } //deletes top element from the stack void pop(){ /* write body of this method */ } /* write main method to test the Stack class */ }