List

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mia023
    New Member
    • May 2007
    • 89

    List

    Hello everybody I just want to ask if Singley Linked List and Double Linked List is implemented in the java built in packages?
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by mia023
    Hello everybody I just want to ask if Singley Linked List and Double Linked List is implemented in the java built in packages?
    Here is a good starting point. Pay attention to the list of "All Known Implementing Classes"

    Comment

    • mia023
      New Member
      • May 2007
      • 89

      #3
      Originally posted by r035198x
      Here is a good starting point. Pay attention to the list of "All Known Implementing Classes"
      I know that the linked list is implemented but it doesn't have the exact same methods as Single or Double Linked List

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by mia023
        I know that the linked list is implemented but it doesn't have the exact same methods as Single or Double Linked List
        Which exact same methods are you refering to?

        Comment

        • mia023
          New Member
          • May 2007
          • 89

          #5
          Originally posted by r035198x
          Which exact same methods are you refering to?
          What I mean is in the java built in there is only Linked List and No Double or Single Linked List (IS that correct??)

          Comment

          • mia023
            New Member
            • May 2007
            • 89

            #6
            Another thing is how do we sort elements in a linked list

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by mia023
              Another thing is how do we sort elements in a linked list
              Specs for LinkedList say
              Originally posted by API Specs
              All of the operations perform as could be expected for a doubly-linked list. Operations that index into the list will traverse the list from the begining or the end, whichever is closer to the specified index.
              For the sorting part, have a look at the Collections.sor t method

              Comment

              Working...