Java - Write code to check if a char is Upper English Character

Requirements

Write code to check if a char is Upper English Character

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        char chr = 'a';
        System.out.println(isUpperEnglishCharacter(chr));
    }//from   ww  w.ja  v  a  2  s  . c o  m

    public static boolean isUpperEnglishCharacter(char chr) {
        int upperStart = 65;//'A'
        int upperEnd = 90;//'Z'
        int code = (int) chr;
        return code >= upperStart && code <= upperEnd;
    }
}