tryingtoprogram :
while (firstName.//includes a,b,c,d,e,f,g.etc)
{
//other code here
}
I want the while loop to keep going if it includes a letter, please help.
Arvind Kumar Avinash :
Do it as follows:
while (firstName.matches(".*[A-Za-z].*")) {
// ...
}