




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





Today: Java support for generic programming
Readings for today: Head First Java chapter 16, Assorted Readings on Java chapter 5.
for (int i = 0; i < L.size (); i += 1) { { String s = (String) L.get (i); ... }
/** A read-only list containing just ITEM. */ static
/** An unmodifiable empty list. */ static
class NumericSet
as appropriate.
/** Set all elements of L to X. */ static
as long as T is a subtype of (extends
class Foo
Because of Java’s design choices, are some limitations to generic pro- gramming: