I would need to know how to read a character by keyboard in Java .
I know you can read a number, or a phrase, but this time I would like you to read just one character, and that the system displays a message, immediately after pressing that character, and not when I touch Enter .
The following code receives an integer, then I touch Enter , and it is saved.
Scanner teclado = new Scanner(System.in);
int número = teclado.nextInt();
But what I want is to save a character without pressing the key. Is it possible?