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> v = new ArrayList();
  13. v.add(2);
  14. v.add(0);
  15. v.add(4);
  16. v.add(3);
  17. v.add(1);
  18.  
  19. for (int i = 0; i<=3; i++){
  20. for (int j = 0; j<=3-i; j++){
  21. if(v.get(j)>v.get(j+1)){
  22. system.out.println(i+"_"+j)
  23. }
  24. }
  25. }
  26. }
  27. }
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:22: error: ';' expected
					system.out.println(i+"_"+j)
					                           ^
Main.java:28: error: class, interface, or enum expected
}
^
2 errors
stdout
Standard output is empty