SyntaxFix
Write A Post
Hire A Developer
Questions
If your code has add(0) and remove(0), use a LinkedList and it's prettier addFirst() and removeFirst() methods. Otherwise, use ArrayList.
add(0)
remove(0)
LinkedList
addFirst()
removeFirst()
ArrayList
And of course, Guava's ImmutableList is your best friend.