imported java.lang.*;
I have delcared
Integer L, R;
tried this line:
L=new Integer(theStack.pop());
R=new Integer(theStack.pop());
when compiling i get this error:
cannot find symbol
symbol : constructor Integer(java.lang.Object)
location : class java.lang.Integer
L (or R)= new Integer(theStack.pop());
^
The only thing i can think of that may not be right is the fact that the data stored in the stack is
already type Int, and the casting is looking for type object. But i thought it shouldn't matter because of the higherarchy. What else could be wrong?