Originally Posted by higv2000
Since the variable c is a String that won't work.
2. Secondly, if you are doing String comparison, you should use .equals() method. What you are comparing is like memory addresses or simulation of pointers.
Already covered and solved.
3. I don't see any declaration for the variable "flag" although you don't need this anymore if you modify the while construct as explained above in #1.
Declared on the first line of the main method.
The problems continue.
6. Where do you store the values entered?