|
-
June 19th, 2005, 10:38 AM
#1
What's the difference between LinkedList and ArrayList?
ArrayList implements interface RandomAccess, while
LinkedList not. I've thought LinkedList doesn't support random
success. However, cgecking its methods, I found out that it DOES!
Code:
set(int index, Object element)
// Replaces the element at the specified position in this list with the specified
element.
Then looks like one of them is redundant? Am I right?
Thank you.
Last edited by love2mao; June 19th, 2005 at 11:14 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|