Created
October 14, 2017 15:35
-
-
Save esuomi/46cc0b7cfc6173b2665adf65ab5ec37a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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