No. | Method | Description |
/>1 public boolean add(Object element) | It is used to&n bsp;insert an element in this collection |
/>2 public boolean addAll(collection c) | It is used to& nbsp;insert the specified collection />elements in the invoking collection |
/>3 public boolean remove(Object element) | It is used t o delete an element from this collection |
/>4 public boolean removeAll(Collection c) | It is used to delete all the elements of />specified collection from the invoking collection |
/>5 public boolean retainAll(Collection c) | It is used to delete all the elements of />invoking collection except the specified collection |
/>6 public int size() | It return the total number of elements in the collection |
/>7 public void clear() | It removes the total no o f element from the collection |
/>8 public boolean contains(object element) | It is used  ;to search an element |
/>9 public boolean containsAll(Collection c) | It is used&nbs p;to search the specified />collection in this collection |
/>10 public Iterator iterator() | It returns an iterator |
/>11 public Object[] toArray() | It converts collection into& nbsp;array |
/>12 public boolean isEmpty() | It checks if collection is empty |
/>13 public boolean equals(Object element) | It matches two&n bsp;collection |
/>14 public int hashCode() | It returns the hashcode num ber for collection |