interface Collection<E> { int size (); boolean isEmpty (); boolean add (E o); boolean addAll (Collection<? extends E> c); Iterator<E> iterator(); } interface Iterator<E> { boolean hasNext (); E next (); void remove (); }