Show the output of the following code.
public class Test {
public static void main(String[] args) {
String s = "Hi, Good Morning";
System.out.println(m(s));
}
public static int m(String s) {
int count = 0;
for (int i = 0; i
if (Character.isUpperCase(s.charAt(i)))
count++;
return count;
}
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.