Whenever you want interactivity in your program then you need to get input from the user. Most of the applications require input from user and with or without modification output is displayed to user. From version 1.5 java let’s you use scanner class to get input from user and you can easily show this output
↧