code: public static void divide(double[] array1, double[] array2) {
          assert (array1.length == array2.length);
          for (int i=0; i<array1.length; i++) {
              array1[i] /= array2[i];
          }
      }
docs: Each element of the first array is divided by each element of the second.