fork download
  1.  
  2. class Main
  3. {
  4. public static void main (String[] args) throws java.lang.Exception
  5. {
  6. java.io.BufferedReader r = new java.io.BufferedReader (new java.io.InputStreamReader (System.in));
  7. String s;
  8. //s = r.readLine();
  9. //while (!(s.startsWith("42"))) {
  10. while ( (s=r.readLine()) != null) {
  11. System.out.println(s);
  12. //s = r.readLine();
  13. }
  14. }
  15. }
Success #stdin #stdout 0.08s 212416KB
stdin
5
6
42
7
8
stdout
5
6
42
7
8