Thank you for taking the time to read,
I have a 2d matrix of booleans and im trying to change each of the border values to false. I have this working for the top and left-most borders but cant seem to figure out a working code for the bottom and right-most, any help would be appreciated, these are the codes for the upper and left-most:
// Changes border values to false
for (int row = 0; row <matrix.length; row++) {
int col = 0;
matrix[row][col] = false;
}
for (int col = 0; col <matrix.length; col++) {
int row = 0;
matrix[row][col] = false;
}