private void computeMaxSize(int capacity){
  _maxSize=Math.min(capacity - 1,(int)Math.floor(capacity * _loadFactor));
  _free=capacity - _size;
}

private void computeMaxSize ( int capacity ) { _maxSize = Math . min ( capacity - 1 , ( int ) Math . floor ( capacity * _loadFactor ) ) ; _free = capacity - _size ; }
computes the values of maxsize . there will always be at least one free slot required .
