I am trying to find a way to take a char input from the keyboard.
char
I tried using:
Scanner reader = new Scanner(System.in); char c = reade
The best way to take input of a character in Scanner class is:
Scanner sca=new Scanner(System.in); System.out.println("enter a character"); char ch=sca.next().charAt(0);