Write a class, InfixToPostfixTranslator, that converts an infix expression into a postfix expression. The class should contains a main method that accepts the expression as a command line argument and outputs the resulting postfix expression. Assume the infix expression is always in proper form
Here is a typical set of executions of the class:
$ java InfixToPostfixTranslator "1"
1
$ java InfixToPostfixTranslator "1 + 2"
1 2 +
$ java InfixToPostfixTranslator "1 + 2 + 3"
1 2 + 3 +
$ java InfixToPostfixTranslator "1 ^ 2 ^ 3"
1 2 3 ^ ^
$ java InfixToPostfixTranslator "( 1 + 2 ) * 3"
1 2 + 3 *