code: public static void fill(final Object[] array, final Object value) {
          //        final int n = array.length;
          //        if (n > 0) {
          //            array[0] = value;
          //        }
          //        for (int i = 1; i < n; i += i) {
          //           System.arraycopy(array, 0, array, i, ((n - i) < i) ? (n - i) : i);
          //        }
          for (int i=0; i<array.length; i++) {
              array[i] = value;
          }        
      }
docs: Faster version of Arrays.fill(). That standard version does NOT use
  memset, and only iterates over the array filling each value. This method
  works out to be much faster and seems to be using memset as appropriate.