public class Array2{
    public static void main(String args[]){
        double[] A = new double[]{1.1,2.2,3.3,4.4,5.5};
        double[] B = new double[A.length]; // Make a new array object,
                                   //   the same size as A.

        double[] C = {10,20,30,40,50,60,70,80,90,100};
        for (int i = 0; i < A.length; i++){
            B[i] = A[i];   // Copy each item from A to B.
            //System.out.println(B[i]);
        }


        //A[0] = 10.1 ;
        //System.out.println(B[0]);

        System.arraycopy(A,2,C,0,3);
        for (int i = 0; i < C.length; i++){
            System.out.println(C[i]);
        }
    }
}