[java] How can I read input from the console using the Scanner class in Java?