write a java statement to check if the second character of a string str is in uppercase
Answers
Answered by
0
Answer:
boolean res = Character.isUpperCase(str.charAt(1));
Explanation:
Second character will be returned and a boolean will be applied to see if it is upper case or nor :)
Similar questions