Thread
:
Java programming help Plz
View Single Post
Reply
Posted 2010-02-28, 12:54 PM in reply to
Slyvr
's post starting
"Thank you good sirs. I'm sure that'll..."
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:
Quote:
for (i=0; i<30; i++){
if (Character.isLetterOrDigit(LastName.charAt(i))){
LastChar_count++;
}
else{
break;
}
}
for (i=0; i<30; i++){
if (Character.isLetterOrDigit(FirstName.charAt(i))){
FirstChar_count++;
}
else{
break;
}
}
I just need to count the number of characters.
"Ban shampoo, demand real poo"
Profile
PM
WWW
Search
Slyvr