ReadLineExample -- reading lines from the standard
input.
This example calculates the average length of lines read from
the standard input.
To see this example in action:
- Compile the Java source file, ReadLineExample.java:
javac ReadLineExample.java
- Run the class:
java ReadLineExample
The source.