cloning a specific section of an array in java code example Example: java copy array int[] a = {1, 2, 3}; int[] b = a.clone();