Codehs 8.1.5 Manipulating 2d Arrays
. This usually happens if you swap your row and column variables. Always double-check: for rows (linked to array.length for columns (linked to array[i].length
For in-place rotation, you must swap four cells at a time using a temporary variable. This is more efficient but harder to debug. Codehs 8.1.5 Manipulating 2d Arrays