Skip to content

Instantly share code, notes, and snippets.

@aniketmlk6
Created July 7, 2021 03:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniketmlk6/e7ac37ccc0d957219f21e8a3dd326ee7 to your computer and use it in GitHub Desktop.
Save aniketmlk6/e7ac37ccc0d957219f21e8a3dd326ee7 to your computer and use it in GitHub Desktop.
public static void main(String[] args) {
loop1: for (int i = 0; i <5 ; i++) {
loop2: for (int j = 0; j <5 ; j++) {
System.out.println(i+" "+j);
if (i==j)
break loop1;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment