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. https://2...content-available-to-author-only...h.hk/pr/res/1281179.html
  13. for(int i = 0; i < 5; i++) {
  14. for(int j = 0; j < 3; j++) {
  15. System.out.println(i + " " + j);
  16. if (i + j == 6) {
  17. break https;
  18. }
  19. }
  20. }
  21. }
  22. }
Success #stdin #stdout 0.04s 2249728KB
stdin
Standard input is empty
stdout
0 0
0 1
0 2
1 0
1 1
1 2
2 0
2 1
2 2
3 0
3 1
3 2
4 0
4 1
4 2