Why do two objects share the same LinkedList when the objects are declared separately?

前端 未结 0 572
忘掉有多难
忘掉有多难 2020-12-14 04:24

I have a hash map that is supposed to display artists and their songs. I have two Artists objects declared as max and brian. When I execute the code, the list of songs is sh

相关标签:
回答
  • 消灭零回复
提交回复
热议问题