how to take user input character in java code example
Example: java input character
import java.util.Scanner;
Scanner inp = new Scanner(System.in);
char character = inp.next().charAt(0);
import java.util.Scanner;
Scanner inp = new Scanner(System.in);
char character = inp.next().charAt(0);