fork download
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. public class Main {
  5.  
  6. public static void main(String[] args) throws IOException {
  7. Scanner in = new Scanner(System.in);
  8.  
  9. while (in.hasNextLine()) {
  10. String line = in.next();
  11. System.out.println("recieved " + line);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.15s 321344KB
stdin
123
456
stdout
recieved 123
recieved 456