I'm trying to change the case of every letter.
Printable View
I'm trying to change the case of every letter.
You will have to look at the letters one at a time, determine its case and set its case to the new case.
Look at the Character class for useful methods.
Once you have the characters in a String, the source of the data won't change how you process it.
To change all letters to capital or lowercase, there are some methods in the String API, but it will change every letter in the String. Look at the String API if that is alright:
String (Java Platform SE 6)