execute 4 different conditions in a loop java code example
Example 1: multiple condition inside for loop java
for (int i = 0, j = 0; isMatrixElement(i,j,myArray); i++, j++) {
// ...
}
Example 2: multiple condition inside for loop java
for( int i = 0 ; i < 100 || someOtherCondition() ; i++ ) {
...
}