«
^
»
11.2 Java 5 provides parameterized types
For example, the Java 5 API documentation says:
Class ArrayList<E>
Similarly, the interface type
List
is now documented as:
Interface List<E>
When we come to use these types, we indicate the type we want to use instead of
E
:
0805: List<Shape> tList = new ArrayList<Shape>();