Considere o tipo de collection Java, abaixo.
Para percorrer e exibir cada elemento contido em c utiliza-se
- A. while(c.hasNext()) {System.out.println(c.get());}
- B. while (Iterator.hasNext()){String p = i.next(); System.out.println(p);}
- C. for (String p : c) {System.out.println(p);}
- D. Iterator i = c.iterator(); while (i.next()){String p = i.hasNext(); System.out.println(p);}
- E. for (int i=0;i<=c.size();i++) {System.out.println(c.get(i));}