//box that holds contents of a type.
class Box<type>
{
type contents;
{
this.contents = contents;
}
}
class Tester
{
public static void main
(String[] args
) {
Box box
= new Box
<String
>("string"); System.
out.
println(box.
contents); }
}
Ci8vYm94IHRoYXQgaG9sZHMgY29udGVudHMgb2YgYSB0eXBlLgpjbGFzcyBCb3g8dHlwZT4KewogICAgIHR5cGUgY29udGVudHM7CiAgICAgQm94KHR5cGUgY29udGVudHMpCiAgICAgewogICAgICAgICAgdGhpcy5jb250ZW50cyA9IGNvbnRlbnRzOwogICAgIH0KfQpjbGFzcyBUZXN0ZXIKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpCgl7CgkJQm94IGJveCA9IG5ldyBCb3g8U3RyaW5nPigic3RyaW5nIik7CgkJU3lzdGVtLm91dC5wcmludGxuKGJveC5jb250ZW50cyk7Cgl9Cn0=