public class Main { public static void main(String[] args) { char c = 'A'; if (Character.isUpperCase(c)) { System.out.println(c + " is an uppercase character"); } } }