Difference between list & arraylist in android. How can i sort out arraylist?
The list is an interface and ArrayList is an implementation of the List interface. The ArrayList class has only a few methods in addition to the methods available in the List interface.
which list are we talking about? Singly-linked list or doubly-linked(circular)-linked list? One of the most obvious answers would be the access time.
For those links, accesstime would be O(n), while, arrayList being the nature of an array, the access-time is obviously O(1).
精彩评论