Type the Box<T> class declaration with a get method
Type the Box<T> class declaration with a get method
Answer
public class Box<T> { private T value; public T get() { return value; } }
T is a placeholder replaced by the actual type at each use site (Box<String>, Box<Integer>, etc.). The class itself stays generic.