Glad you found it.
Type: Posts; User: Norm
Glad you found it.
Sort of true. It will not execute the else. But it will execute what comes after the else.
Look at your code. What is in the else statement? Is that related to your problem?
--- Update ---
...
Did you understand my NOTE? I made it because of a problem in the code you are asking about.
The {}s in the TokenStore2 class need to be fixed. Many of them are not in the proper column to show...
Is this the same problem: http://www.javaprogrammingforums.com/whats-wrong-my-code/38247-help-fix-code.html
Threads merged.
NOTE: With an if statement, if the if condition is true, the else...
There are several ways all involving loops:
1) get the number of lines from the user and loop that number of times
2) have a "sentinel" value that the user enters to tell the program that there is...
Add a method to the TokenStore class that stores the tokens in the array. Call that method with the token to be stored from the TokenDriver class.
Which part are you having problems with?
ask for multiple lines of strings
{I assume the code will read those strings}
turn them into tokens
{What happens to the tokens? Saved or printed...
Use: System.out.println(THESTRINGHERE);
What is wrong with what the code does now? It is using the above mentioned method to print tokens.
Can you explain what the program is supposed to do?