This is my class structure.
public class Node<T> {
private T value;
public Node(T val) {
this.value = val;
}
public T evaluate() {
return value;
};
}
T can be Integer
, Double
, Date
, Long
or String
.
Now, is there anyway I can get to know exactly what that type T is? Thanks.