public class DataNode<T> { private T data; //etc (more code follows) }
public DataNode(T aData) {
this.data = aData;
}
public T getData() {
return this.data;
}
package datanode.model; public class DataNode<T> { private T data; //-------------------------- //Constructors Here public DataNode(T aData) { this.data = aData; } //-------------------------- //Getters public T getData() { return this.data; } }