FileDocCategorySizeDatePackage
StreamPrinter.javaAPI DocExample344Fri Feb 03 14:20:32 GMT 2006None

StreamPrinter

public class StreamPrinter extends Object

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


    try {
      while (true) {
        int datum = System.in.read();
        if (datum  == -1) break;
        System.out.println(datum);
      }
    }
    catch (IOException ex) {
      System.err.println("Couldn't read from System.in!");
    }