Search:

Type: Posts; User: mia_tech

Search: Search took 0.25 seconds.

  1. Re: why am I getting an endless loop in this implementation of addlast to linkedlist

    is it necessary to assign "p.next = null"?.... it is already null right?
  2. Re: why am I getting an endless loop in this implementation of addlast to linkedlist

    to: javapenguin

    oh this one is very simple too... I just added a "break" line to mine
  3. Re: why am I getting an endless loop in this implementation of addlast to linkedlist

    Thank you guys, it was so simple as to adding a "break" line
  4. why am I getting an endless loop in this implementation of addlast to linkedlist

    guys, I'm trying to implement an "addLast" method of a LinkedList; however, I'm getting an endless loop.... could anyone help


    public void addLast(int n)
    {
    Node p = new Node(n);
    ...
Results 1 to 4 of 4