More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. public class BuggyBread {
public static void main(String args[]) {
String str = "we are what we repeatedly do excellence, then, is not an Act but a habit";
int count = 1;
for(Character c: str.toCharArray()){
if(Character.isUpperCase(c)){
break;
} else {
count++;
}
}
System.out.println(count);
}
}
Help us improve. Please let us know the company, where you were asked this question :