import java.io.IOException; import java.io.LineNumberReader; import java.io.PrintWriter; import java.io.StringReader; public class TestIOApp { public static void main(String args[]) throws IOException { StringReader stringin = new StringReader("test"); LineNumberReader in = new LineNumberReader(stringin); PrintWriter out = new PrintWriter(System.out); out.println(in.readLine()); out.flush(); } }