开发者

What is the difference betweel list & arraylist in android [closed]

开发者 https://www.devze.com 2023-03-09 00:22 出处:网络
It's difficult t开发者_C百科o tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. Fo
It's difficult t开发者_C百科o tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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).

0

精彩评论

暂无评论...
验证码 换一张
取 消