listing continued //public boolean isempty(/true if stack is empty return (top =- )///end class stackx ///////////////////////////////////////////////////////////////class reverser private string input/input string private string output/output string //public reverser(string in/constructor input in//public string dorev(/reverse the string int stacksize input length()/get max stack size stackx thestack new stackx(stacksize)/make stack for(int = <input length() ++char ch input charat( )/get char from input thestack push(ch)/push it output ""while!thestack isempty(char ch thestack pop()/pop charoutput output ch/append to output return output/end dorev(///end class reverser ///////////////////////////////////////////////////////////////class reverseapp public static void main(string[argsthrows ioexception