This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
No, there aren't any arrays of lower case letters defined in the API. What there is, is a lot of methods in the java.lang.Character class which you can use to ask whether a character is a letter, number, lowercase, uppercase, etc. As Ankit points out, Java uses Unicode, not ASCII, so some of these questions are a little bit tricky.
Well I can provide a complete code but I think it would be fun if you experiment with it yourself. I would just give you some hints. create a character variable with the value 'a'. Then use the Character.numericValue method along with the ability to assign an int value into a char variable to attain what you want. I hope you would have fun experimenting with the stuff ...
Joined: Aug 15, 2008
Much better if there was a static field to be used out of the box ;-)
Character#numericValue doesn't do what you think it does. But it is still worthwhile going through the Character class, because it has all sorts of useful isSomething methods.
Don't use 97; you are a computer scientist now. Use 0x61. You can find the ASCII values from Unicode because this PDF is identical to ASCII. Note the values are in hexadecimal.