CS 1713 Introduction to Computer Science Daily Problem

Draw an accurate schematic of the program variables showing the execution of the program.
   double a;
   double b;
   double[] x = {1, 3, 5, 7, 9};
   double[] y;
   double[] z;
   a = x[2];
   y = x;
   z = new double[2];
   z[0] = a;
   z[1] = y[1];
   y[0] = 6;
   x[1] = 8;
   x = z;
   z[1] = 4; 
Solution: in class