Readers Writers  «Prev  Next»


Line numbering - Exercise

Objective: Write a program that uses a LineNumberReader and readLine() to read all files named on the command line, line by line, and copy them to System.out, prefixing each line with its line number.
Paste the source code below and click the OK, I'm Done button when you are ready to submit this exercise.