Search:

Type: Posts; User: OutputStream

Search: Search took 0.21 seconds.

  1. Replies
    3
    Views
    1,514

    Re: LinkedList outputs ONLY last element

    Glad you solved it :)
  2. Replies
    3
    Views
    1,514

    Re: LinkedList outputs ONLY last element

    c.setName();
    l.add(c);
    c.setName();
    l.add(c);

    You update the name of an object and add it to the list. Then you update the name again of the same object and add it again to the list again....
Results 1 to 2 of 2