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?

5th Apr 2017, 6:34 PM
derek
1 Resposta
+ 7
Just print list. The toString implementation of a linked list will return text representation of elements: [a, b, c]
5th Apr 2017, 6:53 PM
Tamás Barta
Tamás Barta - avatar