1. Consider the following code segment:
double[] tenths = {.1, .2, .3, .4, .5, .6, .7, .8, .9};
for (double item : tenths)
System.out.println(item);
a. What, if any, output is produced?
b. Revise the loop so that only the first five entries in the array are displayed.
2. What steps are taken by the method copyOf as a result of the following invocation?
Arrays.copyOf(myArray, 2 * myArray.length)