Examlex

Solved

How Many Times Does the Following Loop Execute

question 37

Multiple Choice

How many times does the following loop execute?
Int upperCaseLetters = 0;
String str = "abcdEfghI";
Boolean found = false;
For (int i = 0; i < str.length() && !found; i++)
{
Char ch = str.charAt(i) ;
If (Character.isUpperCase(ch) )
{
Found = true;
}
}


Definitions:

Related Questions