Original Post
I am getting this error from the compiler, I wonder why?
Uranai.java:84: cannot resolve symbol
symbol : method intValue ()
int left = oldStack.pop().intValue();
What I''m trying to do here is pop the stack, get the Integer object out and call it intValue(), which should return the int value of the Integer object and put it into int left.
I tried this:
int left = (Integer)oldStack.pop().intValue();
But then it would say incompatible types.
What am I doing wrong here?