FileDocCategorySizeDatePackage
ReaderEcho.javaAPI DocExample529Sun Mar 28 19:06:52 BST 1999None

ReaderEcho

public class ReaderEcho extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)


    try {
      BufferedReader din = new BufferedReader(new 
       InputStreamReader(System.in), 1);
      while (true) {
        String theLine = din.readLine();
        if (theLine == null) break;  // end of stream
        if (theLine.equals(".")) break; // . on line by itself
        System.out.println(theLine);      
      }    
    }
    catch (IOException e) {
      System.err.println(e);   
    }