Write an example statement to accept a character from scanner object.
Example: nextchar in java
Scanner scanner = new Scanner(System.in);
char ch = scanner.next().charAt(0);
Scanner scanner = new Scanner(System.in);
char ch = scanner.next().charAt(0);