public static boolean isEmpty(int grid[][]) {
for (int r = 0; r < grid.length; r++)
for (int c = 0; c < grid.length; c++)
if (grid[r][c]==0) {
return true;
}
return false;
}
the question is :
after returning true it back to (for loop) or not ????