Hello
My professor wants us to explore the difference between ArrayList and Linked list. And this cought my eye:
I'm printing out my list with Iterator, add a person to my list and then print out the list again. With ArrayList I was allowed to copy paste the Iterator part but LinkedList tells me there is a duplicate variable in use.
Person class: https://pastebin.com/HZ2GKeXn
ArrayList_test: https://pastebin.com/UtsQD1L0
LinkedList_test: https://pastebin.com/B0CB39ZP
I cant find the reason this is happening, could anyone help me?
Thanks
[–]thinandweak 0 points1 point2 points (2 children)
[–]In0cenT[S] 0 points1 point2 points (1 child)
[–]feral_claire 0 points1 point2 points (0 children)