Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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
You can’t perform that action at this time.