system out println("")///end class stackx ////////////////////////////////////////////////////////////////infix to postfix conversion private stackx thestackprivate string inputprivate string output ""//public intopost(string in/constructor input inint stacksize input length()thestack new stackx(stacksize)//public string dotrans(/do translation to postfix for(int = <input length() ++char ch input charat( )thestack displaystack("for "+ch+")/*diagnosticswitch(chcase '+'/it' or case '-'gotoper(ch )/go pop operators break/(precedence case '*'/it' or case '/'gotoper(ch )/go pop operators break/(precedence case '('/it' left paren thestack push(ch)/push it breakcase ')'/it' right paren gotparen(ch)/go pop operators breakdefault/must be an operand output output ch/write it to output break/end switch