Question

I'm writing a java console menu. however, my jre doesn't support "Scanner". What is the walk around to this problem?

java.util.Scanner scanner = new Scanner (System.in);
Was it helpful?

Solution

BufferedReader br = new BufferedReader(new InputStreamReader(System.in))
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top