CIS1068 FIVE MINUTE TEST #8 April 13, 2010 (10) 1. What is printed out by the following code double[] nums = {3.14, 1.3, 2.71, 5.6}; ArrayList w = new ArrayList(); for (double k: nums) w.add(k); for (int k = w.size()-1; k >= 0; k--) System.out.print(k + w.get(k)); (15) 2. Implement the method public static Fraction getMax(Fraction[] a) that returns the largest of fractions in a. You can assume that the Fraction class implements the method compareTo. (20) 3. Implement the method public static int productInts(String filename) that, given the name of a file returns the product of all the integers stored in the file [Beware: the integers may be between other kinds of tokens]. Use the try..catch statement to handle exception.