if a character is lowercase
public class Main { public static void main(String[] args) { char a = 'a'; if (Character.isLowerCase(a)) { System.out.println(a + " is a lowercase character."); } } }