Online Software Educational Training - IT Tutorials - Online Education Training for Computer Software


Home

JAVA PROGRAMMING

Reading String

To read a string from the keyboard, use the version of readLine(), that is a member of the BufferedReader class.

Here is a program that reads and display lines of text until you enter the word "stop".






Previous

Next