Fund. CS II (CS152 2006S)

Class 25: Generics: Parameterized Types

Back to Reuse through Inheritance. On to Arrays and Vectors.

Held: Monday, March 6, 2006

Summary: Today we consider generics in Java. Generics are a new feature of Java 1.5 that permit us to give parameters to type (class) definitions.

Related Pages:

Due

Assignments

Notes:

Overview:

A Problem: Swapping Values

An Initial Solution

Improving the Solution with Polymorphism

Generics to the Rescue

Comparing Values

Back to Reuse through Inheritance. On to Arrays and Vectors.

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue May 9 08:31:40 2006.
The source to the document was last modified on Thu Jan 12 14:58:06 2006.
This document may be found at http://www.cs.grinnell.edu/~rebelsky/Courses/CS152/2006S/Outlines/outline.25.html.

You may wish to validate this document's HTML ; Valid CSS! ; Check with Bobby

Samuel A. Rebelsky, rebelsky@grinnell.edu