Java Console 3 of 5

Paragraph.
Picture
Code 2 : Demonstrates the usage of readLine() and format() methods


The output obtained after running the program is as follows :
Picture
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.

Picture
<<< Previous  ||  Next  >>>


ALL about SCJP = SCJP 1.6, mock, certification, scjp 1.5 , scjp questions, scjp books, scjp hand written notes, scjp dumps, scjp trainings, scjp video tutorials, scjp simulators etc.