fork download
  1. /**
  2.  *
  3.  * NOTE : Class Name should be Main
  4.  *
  5.  **/
  6. import java.io.*;
  7. import java.util.*;
  8. class Main {
  9. public static void main(String[] args) throws InterruptedException {
  10. List<String> inputByLine = new ArrayList<String>();
  11. try {
  12. // Get the object of DataInputStream
  13. String line = "";
  14. while ((line = br.readLine()) != null){
  15. inputByLine.add(line.toString());
  16. }
  17. for (String line2 : inputByLine)
  18. System.out.println(line2);
  19. isr.close();
  20. } catch (IOException ioe) {
  21. ioe.printStackTrace();
  22. }
  23. }
  24. }
Success #stdin #stdout 0.04s 2184192KB
stdin
20
stdout
20