I'm trying to create a node which contains a int array thats size is determined by an int value taken as a parameter, this is what I have so far. It works fairly well but when I go to fill it it will take arrays of any size which is not what I want. thank you.
public Node(int size, int [] contents, Node<T> t) {
size = size;
intArray = new int[size];
intArray = contents;
tail = t;
}