Results 1 to 2 of 2
  1. #1
    mina is offline Member
    Join Date
    Mar 2010
    Posts
    1
    Rep Power
    0

    Default Generic linked list

    I need to create a collection class which internally stores objects using a linked list. Should be implemented as a generic class capable of storing any reference.

    Methods:
    Add
    Delete
    Clear
    length
    toString

    An exception class should throw at the client code in case of errors like deleting from empty collection or adding null object to list. This should have a private string memeber to contain an error message showing type of error. Contents set by set by class contstructor.

    Neeed to test program, create a class whose instance is stored in an object, created within test class.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Hello, and welcome to the forum.

    So in essence what you've done is to give us your entire assignment without asking a question, and I'm afraid that in this situation there's not much that we can do for you other than to direct you to a tutorial or two.

    I suggest that you post your best solution that you've created so far, and ask as specific questions as possible, and we'll be much better able to help. If you really have no idea how to begin here, then please have a look here: Starting Writing a Program. It's a well-written article that can help.

    Much luck

Similar Threads

  1. Linked List
    By basma in forum JCreator
    Replies: 0
    Last Post: 02-03-2010, 09:34 AM
  2. Linked List help
    By alpdog14 in forum New To Java
    Replies: 3
    Last Post: 10-07-2009, 10:34 PM
  3. Linked List integer list
    By igniteflow in forum Advanced Java
    Replies: 1
    Last Post: 12-10-2008, 09:53 PM
  4. Generic List not support in MyEclipse with JRE1.6
    By Md Saim in forum Web Frameworks
    Replies: 3
    Last Post: 10-22-2008, 06:01 PM
  5. Linked List
    By rnavarro9 in forum New To Java
    Replies: 0
    Last Post: 11-29-2007, 04:42 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
  •