Search:

Type: Posts; User: hexwind

Search: Search took 0.11 seconds.

  1. Replies
    3
    Views
    1,512

    Re: LinkedList outputs ONLY last element

    thanks a lot! now I see my problem.
    I edited as follow (in case this helps anybody) :


    l.add(new MyClass());
    l.get(0).setName();
    l.add(new MyClass());
    l.get(1).setName();

    for(MyClass...
  2. Replies
    3
    Views
    1,512

    LinkedList outputs ONLY last element

    Hello guys
    I'm working on Collection framework and doing random exercises off my head. I want to fill a linked list with objects and then display the elements of the linked list, it only output the...
Results 1 to 2 of 2