April 05
Prde. Ismael H. F. Santos -  ismael@tecgraf.puc-rio.br                                                          2
Collection
nfor-each loop
n     Collection<String> c;
n     for (String s : collection)  System.out.println(s);
nBulk operations
ncontainsAll, addAll, removeAll, retainAll, clear
n        Collection<XX> c;   XX e;
n        c.removeAll(Collections.singleton(e));   // singleton static factory method !
nArray operations
ntoArray
n        Collection<XX> c;
n        Object[] a = c.toArray();              // retorna elementos no array de Object !
n        XX[] a = c. toArray(new XX[0]);