泛型

public class Box<T> {
    // T stands for "Type" private T t;
    public void set(T t) { 
        this.t = t;
    } 
    public T get() { 
        return t; 
    }
}

results matching ""

    No results matching ""