is it necessary to assign "p.next = null"?.... it is already null right?
Type: Posts; User: mia_tech
is it necessary to assign "p.next = null"?.... it is already null right?
to: javapenguin
oh this one is very simple too... I just added a "break" line to mine
Thank you guys, it was so simple as to adding a "break" line
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);
...