code: public static void atIndex( final int[] array, int index, int value ) {
          final int i = calculateIndex( array, index );
  
          array[ i ] = value;
      }
docs: Sets the value at the given index.
  @param array the array you are setting the value to.
  @param value the new value.