For this Question: Write a program to check whether character is an alphabet or not using conditional operator.The first line of the input contains a character ch.

<b>Constraints</b>
'a', 'A' <= ch <= 'z', 'Z'Print "YES" if it's alphabet otherwise "NO".Sample Input :
a

Sample Output
YES, I have written this Solution Code: import java.io.*;
import java.util.*;



class Main {
    public static void main (String[] args) {

        Scanner sc = new Scanner(System.in);
        char c = sc.next().charAt(0);
        String output =(c>='a' && c<='z') || (c>='A' && c<='Z')
        ?  "YES" : "NO";
        System.out.println(output);
    }
}, In this Programming Language: Java, Now tell me if this Code is compilable or not?