How to backup ArrayList in Java?

后端 未结 10 1485
刺人心
刺人心 2020-12-09 12:40

I have some data stored as ArrayList. And when I want to backup this data,java bounds two objects forever. Which means when I change values in data ArrayL

10条回答
  •  借酒劲吻你
    2020-12-09 12:49

    You could write an object that wraps two ArrayLists. Anything write it so that it adds, removes, and modifies data in both at the same time.

提交回复
热议问题