
public class CopyArray
{
    public static void main(String[] args)
    {
        double[] myList = {34, 15, 66, 7};
      
        double[] myListCopy = new double[ myList.length ];
 
        for ( int i = 0; i < myList.length; i++ )
            myListCopy[i] = myList[i];
            
        myListCopy[1] = 999; // Will not change myList
        
        myList[3] = 999;     // Will not change myListCopy
    }
}
