The Java Program: Read_11.java

  1 // Read_11.java -- Read line by line the standard input (JDK 1.1)
  2 
  3 import java.io.IOException;
  4 import java.io.InputStreamReader;
  5 import java.io.BufferedReader;
  6 
  7 public class Read_11 {
  8 
  9     public static void main (String args[]) throws IOException {
 10 
 11         BufferedReader br = new BufferedReader (
 12            new InputStreamReader (System.in));
 13 
 14         String line;
 15         while ((line=br.readLine()) != null) {
 16           System.out.println (line);
 17         }
 18     }
 19 }