Ok I removed that line. Now the error says the stack is empty, Exception in thread "main" java.util.EmptyStackException
while(tokens.hasMoreTokens())
{
thisToken = tokens.nextToken();...
Type: Posts; User: SchollStang
Ok I removed that line. Now the error says the stack is empty, Exception in thread "main" java.util.EmptyStackException
while(tokens.hasMoreTokens())
{
thisToken = tokens.nextToken();...
I do not want to convert "+" to a double, if the program encounters a + I would like it to add the two previous tokens in the string.
So essentially in case "+": When the we encounter a "+", add...
Currently the only thing that works is default in my switch statement(I can output the top item in the stack) I get an error when using any of the other cases, Exception in thread "main"...
Code added above
Hello, I have been working on a silly little project for class for over a week now. The directions are below in bold
You may assume the user will enter a one line properly formatted post fixed...