Converting a Postfix Notation to an ExpressionTree
问题 As it is said in the title I am trying to create a code which converts a postfix notation to an expression tree. Here you can check the constructor : public byte type; // 0 : operator, 1: operand (a number) public char operator; // One of '+', '-', '*', '/' public int operand; // A number ExpressionTreeNode(byte type){this.type = type; left=right=null;} and Here is my code : public static ExpressionTreeNode Postfix2ExpressionTree(String postfixExpr){ Stack s = new Stack<Object>();