Friday, July 31, 2009

Java boolean input question?

Im still learning Java and I am supposed to program something that has the user input a string and determine if the string is a string of characters, numbers, or empty string.


I have to use the command "boolean Character.isLetter(char c)" and "boolean Character.isDigit(char c)" to determine the first and last character of the string but I cant seem to get the syntax right. Any help would be greatly appreciated.

Java boolean input question?
The answer is here


No comments:

Post a Comment