title: How to backup ArrayList in Java?
body: <p>I have some data stored as <code>ArrayList</code>. And when I want to backup this data,java bounds two objects forever. Which means when I change values in data <code>ArrayList</code> this changes come to backup. I tried to copy values from data separately to backup in the loop, tried to use method <code>data.clone()</code> — nothing helps.</p>