+ 5
Scanner class doesn't have any separate method to take char input, so take the input as string using next() and consider the 1st character of it as the char input. Scanner scan = new Scanner (System.in); char a = scan.next().charAt(0);
20th Oct 2017, 6:27 PM
Shamima Yasmin
Shamima Yasmin - avatar