10.4. Creating the Shipping Container Class

Follow along as we create a generic shipping container class that can hold objects of any type. Also, we point out some of the important benefits of generics.

https://youtu.be/m539u1hGP7E

Generic Method Example

10.4.1. Additional Reading and More Examples

Now that you’re familiar with some of the basic concepts related to generic methods in Java, you should read the following official Oracle readings:

The Java™ Tutorials: Why Use Generics?

The Java™ Tutorials: Generic Types

The Java™ Tutorials: Raw Types

If you have any questions related to the Generic Classes reading provided by Oracle, then feel free to ask them on the course Piazza.