Java Console 3 of 5
Paragraph.
The output obtained after running the program is as follows :
The readLine() method will wait for the user to enter a value. In the above output you can see that the code is waiting for the user to enter his/her name.