for (int row = 0; row < currentGeneration.length; row++) { for (int col = 0; col < currentGeneration[row].length; col++) { nextGeneration[row][col] = currentGeneration[row][col]; } }