Skip to content

Instantly share code, notes, and snippets.

@shigemk2
Created February 8, 2015 04:41
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 shigemk2/2d5c6224d255d3900443 to your computer and use it in GitHub Desktop.
Save shigemk2/2d5c6224d255d3900443 to your computer and use it in GitHub Desktop.
// http://www.javadrive.jp/start/break/index3.html
class JSample3_1{
public static void main(String args[]){
outside: for (int i = 1; i < 5; i++){
for (int j = 1; j < 5; j++){
if (i * j > 10){
break outside;
}
System.out.println(i + "*" + j + "=" + (i * j));
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment