Im trying to do this but I am a still having problems because I still have strings. I need the infix expression to be in a character array to pass to my methods and the numbers to be integers to...
Type: Posts; User: KristopherP
Im trying to do this but I am a still having problems because I still have strings. I need the infix expression to be in a character array to pass to my methods and the numbers to be integers to...
Im not trying to parse it into an int. The code is wrong. I am asking what I need to do to read the first line which will be an expression.
Then read the second line which are numbers and parse...
I understand this. I can not figure out how to go through the file.
the way I wrote the while loop
test = st.nextToken();
grabs the next token which is A
numbers =...
I am having trouble with StringTokenizer. I have an input file that has an infix expressions followed by
a set of numbers which are the values for the variables
A + B * C
1 3 5 2 2 2
The...