View Single Post
 
Reply
Posted 2010-02-28, 07:56 PM in reply to Slyvr's post starting "Thank youu. The .charAt worked but I..."
Slyvr said: [Goto]
Thank youu. The .charAt worked but I still have a problem. I need to know how many characters are in each string now so I can test each string's characters if they are lowercase. This is what I have so far for that portion...but I get a String Index Out Of Bounds Exception:

You can use the String method length() to determine how many characters there are in a string object. For instance, you may want to use something like for(int i=0; i < LastName.length(); i++) to iterate through each character in the string LastName.

Last edited by Knight Sir Rick; 2010-02-28 at 08:10 PM.
Old
Profile PM WWW Search
Knight Sir Rick enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzKnight Sir Rick enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Knight Sir Rick