### Question:
ImageJInterpolation { public static float[][] linearizedArrayTo2D(float[] input, int lenX, int lenY) { float[][] img2d = new float[lenY][lenX]; for (int i = 0; i < input.length; i++) { img2d[i / lenX][i % lenX] = input[i]; } return img2d; }  static float[][] resize(float[][] input, int lenX, int lenY); static float[][] crop(float[][] input, float top, float right, float bottom, float left); static float[][] cropAndResize(float[][] input, int lenX, int lenY,
            float minX, float minY, float maxX, float maxY); static float[] linearize2DArray(float[][] input); static float[][] linearizedArrayTo2D(float[] input, int lenX, int lenY);  }### Answer:
@Test public void testLinearizedArrayTo2D() throws Exception { float[][] expecteds = arr2d; float[][] actuals = ImageJInterpolation.linearizedArrayTo2D(arr1d, 4, 3); assertArray2dEquals(expecteds, actuals); }