Find out whether the given input is letter or digit
Program to find whether a given character is a digit or a letter import java . util . Scanner ; //Importing Scanner class to get input from the user public class Identify { public static void main(String []args) // Main method { char a ; System.out.println ("Enter digit or a letter"); //Instruction to User a = new Scanner ( System.in ). next().charAt(0) ; if (( a >'a' && a <'z')||( a >'A' && a <'Z')) { System.out.println ("This is a letter"); //If the given character is letter } ...