12 lines
267 B
Java
12 lines
267 B
Java
//: generics/BasicHolder.java
|
|
// ©2015 MindView LLC: see Copyright.txt
|
|
|
|
public class BasicHolder<T> {
|
|
T element;
|
|
void set(T arg) { element = arg; }
|
|
T get() { return element; }
|
|
void f() {
|
|
System.out.println(element.getClass().getSimpleName());
|
|
}
|
|
} ///:~
|