ShoeNinja, I try to understand that "list" is not altered.
Let's say the first magazine is "A", and the code
list = node;
so list.magazine = "A";
list.next = null;
After that, every time a new magazine is added consequently, the code
current = list;
will take place.
That means, current is reseted to default "
list" value, having
current.next as
null.
That will make
while (current.next != null) never run!
That's my understanding from code, please correct me. Sorry my brain is not turning smoothly
