The next example creates a tiny text editor. It creates an array
of String objects and then reads in lines of text, storing each line in the array. It will
read up to 100 lines or until you enter "stop". It uses a BufferedReader to read
from the console.

Enter lines of text.
Enter 'stop' to quit.
This is line one.
This is line two.
Java makes working with strings easy.
Just create String objects.
stop
Here is your file:
This is line one.
This is line two.
Java makes working with strings easy.
Just create String objects.