What program? You did not post the program's the current code.
The compiler has options about version levels that could allow you to generate a version of a class file that is executable with a 1.5...
Type: Posts; User: Norm
What program? You did not post the program's the current code.
The compiler has options about version levels that could allow you to generate a version of a class file that is executable with a 1.5...
I take it you are using jdk 1.7
You seem to have forgotten to tell anyone.
The problem with nextInt() is it won't like you typing in letters. It wants numeric characters 0-9.
Not many users know the ASCII codes for the letters.
To get a char, I think you'll need to read...
What did you type in? What is valid input for the nextShort() method?
Why does the nextShort method throw that exception?
Read the API doc for the Scanner class's nextShort method.
The simple answer is: You write a program.
You read it in
You test it
You put out an answer depending on the test.
You could use a switch statement, but I think you'd have to have 26 case...
What are the conditions you need to test that need to be true?
You have read a single character
the character is in the range: a-z and A-Z?
The String class has a method to determine the number...