How can I keep a while loop going if the string contains a letter

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].*")) {
    // ...
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=11281&siteId=1