hi,

iam not sure if the title came across correctly.
i have a question, when you write a program which requires one letter input, so every input is always just one letter, is there a way to make the program process the input as soon as u typed one letter without needing to press enter?

also what way is there to accept char input instead of string input?
i used this (maybe use a different input method? i really have no idea, iam quiet new to Java and programming at all)
BufferedReader reader;
		reader = new BufferedReader(new InputStreamReader(System.in));
 
//I would rather use char than String.
		String unit = "";
		try {
			unit = reader.readLine();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

thx for any help.