CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Apr 2003
    Location
    North Carolina
    Posts
    167

    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
  •  





Click Here to Expand Forum to Full Width

Featured