1. What output will be produced by the following code? int[] anArray = new int[10]; for(int i=0; i < anArray.length; i++) anArray[i] = 2*i; for(int element : anArray) System.out.print(element + " "); System.out.println(); 2. Give the definition of a static method called "showArray" that has an array of base type "char" as a single parameter and that writes one line of text to the screen consisting of the characters in the array argument written in order. 3. Suppose "a' is an array of values of type double that is partially filled. The array contains meaningful values in only the first "numberUsed" elements, where "numberUsed" is a variable of type "int". Write some code to display all the meaningful values in the array "a".