Return to Snippet

Revision: 471
at July 15, 2006 02:24 by cetnar


Initial Code
public void printList(List<?> list, PrintStream out) throws IOException {

      for (Iterator<?> i = list.iterator( ); i.hasNext( ); ) {

        out.println(i.next( ).toString( ));

      }

 }

Initial URL


Initial Description
Uwaga: taki typ generyczny jest niestety readonly.

Initial Title
Generics - Using Type Wildcards

Initial Tags


Initial Language
Java