Java - Write code to check if a char is Capital

Requirements

Write code to check if a char is Capital

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        char c = 'a';
        System.out.println(isCapital(c));
    }/*from   w w  w.j  a  v a 2  s  .com*/

    public static boolean isCapital(char c) {
        return Character.isUpperCase(c);
    }
}