How do I back up ArrayList in Java?
•
Java
I have some data stored as ArrayList When I want to back up this data, Java will always define two objects This means that when I change the value in the data ArrayList, the change will be backed up I tried to copy the data from the data to a circular backup, trying to use the method data Clone () – no help
Solution
I think you need it Clone() single object Clone ArrayList is not "deep"; It only clones references to objects
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码