FileDocCategorySizeDatePackage
Echo.javaAPI DocExample490Sun Mar 28 19:06:30 BST 1999None

Echo

public class Echo extends Object

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


    try {
      DataInputStream din = new DataInputStream(System.in);
      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);   
    }