listing continued //end class linklist ///////////////////////////////////////////////////////////////class linkstack private linklist thelist//public linkstack(/constructor thelist new linklist()//public void push(long /put item on top of stack thelist insertfirst( )//public long pop(/take item from top of stack return thelist deletefirst()//public boolean isempty(/true if stack is empty return thelist isempty()//public void displaystack(system out print("stack (top-->bottom)")thelist displaylist()///end class linkstack ///////////////////////////////////////////////////////////////class linkstackapp public static void main(string[argslinkstack thestack new linkstack()/make stack