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