0
How do you print the elements of a linked list in java?
I need to print the elements of a linked in java but im not allowed to use a for each loop. how would I go about doing this?
1 Resposta
+ 7
Just print list. The toString implementation of a linked list will return text representation of elements:
[a, b, c]