How can I clone an arrayList
with the following structure:
List<empItem> empList = new ArrayList<empItem> ();
I need to create a clone in such a way that i need to modify the empItem
without affecting the original?
Yes the same scenario has an answer already.How to clone ArrayList and also clone its contents? But since the post is Outdated , i am looking for any fresh / latest way ..