fork download
  1. object Main extends App {
  2. var line = readLine();
  3. while(false == line.equals("42")) {
  4. System.out.println(line);
  5. line = readLine();
  6. };
  7. }
Success #stdin #stdout 0.54s 54812KB
stdin
1
2
10
42
11
stdout
1
2
10