3 ms·
I mean that the LinkedList class is defined so that "new LinkedList()" returns not a list of length zero, but a list of length 1 with the first element containi
by jfultz 8y ago
I mean that the LinkedList class is defined so that "new LinkedList()" returns not a list of length zero, but a list of length 1 with the first element containing the string "head". The actual list it creates is {"head", "1", "2", "3", "4"}, despite the fact that the output claims the list has 4 elements.