This Java video tutorial teaches you how to read input from the user in command-line mode using three ways: BufferedReader, Scanner and Console.
In this article, we discuss three different ways for reading input from the user in the command line environment (also known as the “console”). Each way is fairly easy to use and also has its own advantages and drawbacks.
1. Reading User’s Input using BufferedReader class
2. Reading User’s Input using Scanner class
3. Reading User’s Input using Console class