Search:

Type: Posts; User: literallyjer

Search: Search took 0.07 seconds.

  1. Replies
    6
    Views
    7,046

    Re: Writing clone() method for LinkedList

    You are very welcome :-)
  2. Replies
    6
    Views
    7,046

    Re: Writing clone() method for LinkedList

    I am assuming that line 14 is this:

    OurLinkedList <String>cloned = (OurLinkedList<String>)myList.clone();

    If that's the case, then you are trying to cast a LinkedList into your OurLinkedList....
  3. Replies
    6
    Views
    7,046

    Re: Writing clone() method for LinkedList

    Why does your clone method repeatedly (assuming size is greater than 1) add "A" into the cloned list and not the values of the list it is cloning?
Results 1 to 3 of 3