How do I make a non-numeric letter represent an integer value? It can only be "Y" "N" or "Q"
Type: Posts; User: JohnEliot
How do I make a non-numeric letter represent an integer value? It can only be "Y" "N" or "Q"
Here it is:
Exception in thread "main" java.lang.NumberFormatException: For input string: "y"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at...
It is a loop program that counts Yes votes with 'Y', no votes with "N" and to quit is "Q" and after quit is chosen it shows number of yes votes and number of no votes, all in a dialog box. Here it...