Can you give me examples of your input, and then what output you get? I'm kinda in the dark as to what the exact problem is...
Also, I suggest instead of using the for-loop you have to check for...
Type: Posts; User: snowguy13
Can you give me examples of your input, and then what output you get? I'm kinda in the dark as to what the exact problem is...
Also, I suggest instead of using the for-loop you have to check for...
The syntax of else if statements is else if(condition), not if else(condition). :P
Here's your problem! You're checking to see if the Scanner equals "q" which will never be true. Instead of the Scanner's value, you should see if the String variableName has a value of "q". Maybe...
First of all, I suggest using if-else-if statements instead of a bunch of if-statements like you are currently doing. This makes your program more easy to follow and lessens the work that a computer...