Is LinkedList.removeFirst() a same thing as ArrayList.remove(0)?
in
Programming Questions
•
2 years ago
For I mean, will the indices be updated correctly in the second case as they are i the first one? Or in other words, if I do ArrayList.remove(0), will the element that was at position 1 become the element at position 0? Are there any unobvious consequences in such a situation? Any speed difference?
1