I am writing a for loop as follows:
for(int i = row, int j = col; i < rows, j < cols; i++, j++)
However, it appears Java isn't liking it... Is there any way I can achive something similar?
Thanks!
use &&. Also, int only once.
for(int i = row, j = col; i < rows && j < cols; i++, j++)
or(int i = row,j = col; i < rows, j < cols; i++, j++)you can't have multiple declarations infor loop