how to avoid multiple if else in 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++ ) {
...
}