开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜