do scanner class reades bits or characters from console code example
Example 1: scanner methods java char
Scanner scanner = new Scanner(System.in);
char ch = scanner.next().charAt(0);
Example 2: how to use scanner class in java
// import Scanner
import java.util.Scanner;
// Initialize Scanner
Scanner input = new Scanner(System.in);
// Test program with Scanner
System.out.println("What is your name?");
String name = input.nextLine();
System.out.println("Hello," + name + " , it is nice to meet you!");