code: public void setAll(int value) {
          for (int i = 0; i < array.length; i++) {
              array[i] = value;
          }
      }
docs: Sets all the elements in the array to the specified value.
  
  @param value
  the value.