code: public static void addInPlace(double[] a, double b) {
      for (int i = 0; i < a.length; i++) {
        a[i] = a[i] + b;
      }
    }
docs: Increases the values in this array by b. Does it in place.
  
  @param a The array
  @param b The amount by which to increase each item