fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. ArrayList<Integer> list = new ArrayList<Integer>();
  13. InputStream inStream = new FileInputStream(reader.readLine());
  14.  
  15. while (inStream.available() > 0)
  16. {
  17. Integer g = inStream.read();
  18. if (g % 2 == 0)
  19. {
  20. list.add(g);
  21. }
  22. }
  23. sort(list);
  24. for (Integer e : list)
  25. {
  26. System.out.println(e);
  27. }
  28.  
  29. }
  30. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
1
2
4
6
5
4
8
0
7
4
compilation info
Main.java:24: error: cannot find symbol
        sort(list);
        ^
  symbol:   method sort(ArrayList<Integer>)
  location: class Ideone
1 error
stdout
Standard output is empty