I have my homework but I have a problem understanding this code because it is new to me, it is called Labeled break statement, I'm having a hard time to translate the code to a flowchart
Code:
1. class LabeledBreak {
2. public static void main(String[] args) {
3.
4. first:
5. for( int i = 1; i < 5; i++) {
6.
7. second:
8. for(int j = 1; j < 3; j ++ ) {
9. System.out.println("i = " + i + "; j = " +j);
10.
11. if ( i == 2)
12. break first;
13. }
14. }
15. }
16.}
I hope someone can help me to translate this into a flowchart and also an explanation will do also so that I can understand how this labeled break statement works.