class Box<T> {
T value;
public void set(T value) {
this.value = value;
}
public T get() {
return this.value;
}
}
public class BoxTest {
public static void main(String[] args) {
Box<Integer> i = new Box();
i.set(new Integer(100));
System.out.println(i.get());
Box<String> s = new Box();
s.set("만능이네~~ㅋㅋㅋ!");
System.out.println(s.get());
}
}