// 標準入力から読み込んで標準出力に書き出すプログラム import java.io.*; // おまじない class Pipe1 { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; while( (str = br.readLine()) != null ) { // ここで行毎に加工することもできる! System.out.println(str); } } } // end of Pipe1.java