If you are looking for this to print to your console you are going to need to print it out.
As posted already on Stackexchange… here printing nodes from a singly-linked list
You need to do this:
System.out.print(list.toString());
3
solved java code, no output after compile [closed]