fork download
  1. /*public class Loops {*/
  2. /*public static void main(String[] args) {
  3.   int x = 8, y = 4, w;
  4.   boolean z = !((x > 4) && (y <= 6)) != ((y <= 4) || (x > 6));
  5.  
  6.   if(x++ >= 4 || --y >= 3)
  7.   w = --x + y++;
  8.   else
  9.   w = x-- + ++y;
  10.   }
  11.   System.out.println(w);
  12.   System.out.println(x);
  13.   System.out.println(y);
  14.   System.out.println(z);
  15. }*/
  16.  
  17. public class Test {
  18. public static void main(String[] args) {
  19. final int MAX = 9, MIN = 5;
  20. int i = 1, j = 0;
  21.  
  22. System.out.println(i + " " + j);
  23. while(i <= MIN) {
  24. for(j = ++i; j <= MAX; j++) {
  25. System.out.println(i + " " + j);
  26. j += 2;
  27. }
  28. i += 3;
  29. }
  30. System.out.println(i + " " + j);
  31. }
  32. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:17: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
stdout
Standard output is empty