Assign a new value to the member variable of a class element in the list. Why do all the member variable values of the class elements in the list change? As you can see, I only changed the value of the member variable of Li [0] , but the value of the member variable of all elements in Li changed.enter image description here
How can I only change the single element in the list (example: li[0]) instead all of them?