+ 2
ArrayList vs LinkedList
I've been recently working on a txt to midi player and I had to rework my code in Java Lists. I used arraylist everywhere (trough List interface) but got some kind of error, something with immutability so i tried linkedlist and it worked. The question is, which one do you use in which situations ? I'm kinda just confused about these and I would love to know someone's elses experience with them :D Thanks for answering.
1 Odpowiedź