I have this code which gives me the error that "Cannot create a generic array of BST_Node"
BST_Node<Integer>[] arrayTree = new BST_Node<Integer>[treeSize];
I don't know why because I have
Integer[] arrayTree = new Integer[treeSize];
and it works perfectly. Why It is that it can't create a fixed size array with a generic type and what's the correct way to do this?