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