how to scan a character in java from system.in code example
Example: scanner methods java char
Scanner scanner = new Scanner(System.in);
char ch = scanner.next().charAt(0);
Scanner scanner = new Scanner(System.in);
char ch = scanner.next().charAt(0);