Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
It is generally not too difficult to parameterize your collection declarations and make use of the generic types and methods provided by the JDK. Writing your own generic types is a bit more difficult, but it’s worth the effort to learn how.
Consider the simple stack implementation from Item 6: