CIS1068 FIVE MINUTE TEST #6 March 30, 2010 (5) 1. What is wrong with the declaration ArrayList a = new ArrayList(); (5) 2. Is the assignment Integer x = 5; legal? Explain why it is/not (10) 3. Create an ArrayList with as elements "rose", "ann", "jim" (10) 4. Write the method public static String foo(ArrayList a) which returns the concatenation of the strings in a. For example, foo applied to the arra list in problem 3 returns "roseannjim".