how to assign generic array in java code example Example: generic array creation java Node<T>[] arr = new Node[0];