Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Java
  4. Java Linked Lists (JAVA Beginner in need of help)

Java Linked Lists (JAVA Beginner in need of help)

Scheduled Pinned Locked Moved Java
javadata-structureshelptutorialquestion
5 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jude martin 99
    wrote on last edited by
    #1

    How do I create an application that uses a linked list. It must be able to do at least the following to the linked list: check whether the list is empty display the list find the length of the list destroy the list retrieve the data in the nth node search the list for a given item insert an item in the list delete an item from the list I need help on how to start it and help in executing the actions from the list above I'm just a beginner in Java Programming

    L V B 3 Replies Last reply
    0
    • J jude martin 99

      How do I create an application that uses a linked list. It must be able to do at least the following to the linked list: check whether the list is empty display the list find the length of the list destroy the list retrieve the data in the nth node search the list for a given item insert an item in the list delete an item from the list I need help on how to start it and help in executing the actions from the list above I'm just a beginner in Java Programming

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Member 10001837 wrote:

      I'm just a beginner in Java Programming

      Then you should start with some of the tutorials[^].

      Use the best guess

      1 Reply Last reply
      0
      • J jude martin 99

        How do I create an application that uses a linked list. It must be able to do at least the following to the linked list: check whether the list is empty display the list find the length of the list destroy the list retrieve the data in the nth node search the list for a given item insert an item in the list delete an item from the list I need help on how to start it and help in executing the actions from the list above I'm just a beginner in Java Programming

        V Offline
        V Offline
        Varad Velingkar
        wrote on last edited by
        #3

        You can use the LinkedList Class from Collections Interface.

        S 1 Reply Last reply
        0
        • V Varad Velingkar

          You can use the LinkedList Class from Collections Interface.

          S Offline
          S Offline
          sriniprabhu
          wrote on last edited by
          #4

          I think Collections is a implementation class not an interface where all the following methods implemented. sort,binarysearch,max,min,emptyList,emptySet,etc.... Collection is an super interface for all the interfaces Set,List,Map..

          1 Reply Last reply
          0
          • J jude martin 99

            How do I create an application that uses a linked list. It must be able to do at least the following to the linked list: check whether the list is empty display the list find the length of the list destroy the list retrieve the data in the nth node search the list for a given item insert an item in the list delete an item from the list I need help on how to start it and help in executing the actions from the list above I'm just a beginner in Java Programming

            B Offline
            B Offline
            bakary konate
            wrote on last edited by
            #5

            Use LinkedList from Java Collection Framework like in the following: // create your class public class MyItem { ....... ........ } //Instantiate your object MyItem item = new MyItem(); List myList = new LinkedList(); myList.add(item);

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups