collection collection of commonly used functions

java.util.Collection Interface

  It is a collection of all single top level interface, which defines a common method for all the separate collection

1.public boolean add (E e) an additive element

2.public boolean remove (E e) remove elements

3.public boolean contains (E e) contains

4.public boolean isEmpty () is empty

5.public void clear () Clear all the elements

6.public int size () returns the number of elements

7.public Object [] toArray () into an array of elements in the set

Guess you like

Origin www.cnblogs.com/fur-mat/p/11328713.html