public class CopyArray { public static void main(String[] args) { int array1[]= {2,3,4,5,8,9}; int array2[] = new int[6]; System.out.println("array:"); System.out.print("["); for (int i=0; i