Computer Science, asked by rimjim9177, 1 day ago

write a java statement to check if the second character of a string str is in uppercase

Answers

Answered by AlphaHotdogs
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