java how to copy an array why do we need .clone code example Example: java copy array int[] a = {1, 2, 3}; int[] b = a.clone();