@SuppressWarnings("unchecked")
    private static <T> Node<T>[] genericNodeArray(int size) {
        return (Node<T>[]) new Node<?>[size];
    }
@SuppressWarnings("unchecked")
    private static <T> Node<T>[] genericNodeArray(int size) {
        return (Node<T>[]) new Node<?>[size];
    }
@ SuppressWarnings ( "unchecked" ) private static < T > Node < T > [ ] genericNodeArray ( int size ) { return ( Node < T > [ ] ) new Node < ? > [ size ] ; }
Helper function to avoid type warnings.
Helper function to avoid type warnings .