Whenever you are looping on some value range, you are processing on each of the value comes between the initial and final one...
For example if you are making addition of odd numbers.
it is convenient to use loop which will be incremented by 2 rather than continuing for each odd value,
for (int i = 0; i < 100 ; i=i+2){
// do addition
}
but if you are modifying your value that is being checked within the loop, than continue
or break
is good practice to implement.
for example,
boolean flag = false;
// flag will be modified in some iteration of loop, but you don't know which.
for ( int i = 0 ; i < 100 ; i++ ) {
if ( flag ) {
continue;
}
// flag modified somewhere..
}