### Source code for LessThanTooShortExample.java:

>     public class LessThanTooShortExample
>     {
>     	public static void main(String args[])
>     	{
>     		// LessThanTooShortExample
>     		String s = "x";
>     		while (s.length() < 4)
>     		{
>     			System.out.println(s + " is too short.");
>     			s = s + "x";
>     		}
>     		System.out.println("All Done.");
>     	}
>     }

### Output from LessThanTooShortExample.java:

    x is too short.
    xx is too short.
    xxx is too short.
    All Done.

--- Output Ends ---

#### NOTE:

You are reading previously generated output. You are not currently running the LessThanTooShortExample application at the momement. You need to compile and run the source code first.

#### To run this program:

`
- javac LessThanTooShortExample.java
- java LessThanTooShortExample
`

Authors: Kevin Chu and Eric Brower
Copyright 2000 Prentice Hall PTR