Hi I'm new to Java
and I would like to know what is the best choice to read a user Input in the console, as far as I know there are 3 ways to do it:
Console console = System.console();
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
Scanner reader = new Scanner(System.in);
Which one should I choose? Why that one and not the other ones?
The methods for reading numbers are very useful. The exceptions are unchecked, so you do not have to write boilerplate try/catch blocks.