+ 10
Scanner scan = new Scanner (System.in); char c = scan.next().charAt(0); Since 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.
27th Oct 2017, 10:11 AM
Shamima Yasmin
Shamima Yasmin - avatar