Mind.random()

random ramblings of an eccentric programmer

Java Generics Tutorial

With Java 6.0 round the corner, most of us are still making Java 1.4 code. And when we see these kind of snippets in the net we just get embarrassed.

List list = new ArrayList(); Iterator iter = list.iterator(); String s = iter.next();

Here is a very very good FAQ/Tutorial on Java 5.0 Generics. Must read.

http://www.arunma.com/files/JavaGenericsFAQ.pdf

tutorial)

Comments