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
You could take the first character from Scanner.next:
Scanner.next
char c = reader.next().charAt(0);
To consume exactly one character you could use:
char c = reader.findInLine(".").charAt(0);
To consume strictly one character you could use:
char c = reader.next(".").charAt(0);