The break statement has no effect on if statements. It only works on switch, for, while and do loops. So in your example the break would terminate the for loop.
See this section and this section of the Java tutorial.
The break statement has no effect on if statements. It only works on switch, for, while and do loops. So in your example the break would terminate the for loop.
See this section and this section of the Java tutorial.