Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. public void ensureCapacity(int minimumCapacity)
  2. Ensures that the capacity is at least equal to the specified minimum. If the current capacity is less than the argument, then a new internal array is allocated with greater capacity. The new capacity is the larger of:
  3. The minimumCapacity argument.
  4. Twice the old capacity, plus 2.
  5. If the minimumCapacity argument is nonpositive, this method takes no action and simply returns.
  6. Parameters:
  7. minimumCapacity - the minimum desired capacity.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement