Use Character.isLowerCase, Character.isUpperCase to check the letter case
class MainClass {
publicstaticvoid main(String[] args) {
System.out.println("Is the Latin symbol z a lowercase letter? " + Character.isLowerCase('z'));
System.out.println("Is the Latin symbol a an uppercase letter? " + Character.isUpperCase('a'));
}
}