Advertisements
Advertisements
Question
Write down the syntax to perform the following task:
To check if the second character of a String(str) is in uppercase.
One Line Answer
Solution
boolean p = Character.isUpperCase(str.charAt(1));
shaalaa.com
Is there an error in this question or solution?