Skip to content

Instantly share code, notes, and snippets.

@esuomi
Created October 14, 2017 15:35
Show Gist options
  • Save esuomi/46cc0b7cfc6173b2665adf65ab5ec37a to your computer and use it in GitHub Desktop.
Save esuomi/46cc0b7cfc6173b2665adf65ab5ec37a to your computer and use it in GitHub Desktop.
public class Labels {
public static void main(String[] args) {
http://example.org
for (int i = 0; i < 5; i++) {
System.out.println("i = " + i);
if (i == 3) {
break http;
}
}
}
}
// prints
/*
i = 0
i = 1
i = 2
i = 3
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment