Declaring and using the type parameter
Write the parameter after the class name: class Box<T>. Inside the class, use T as if it were a real type — for fields, for parameters, and for return types. When you create an object you supply the actual type: new Box<String>("hi"), and every T becomes String for that object.