1. import java.util.*; 2. public class X { 3. public static void main(String[] args) { 4 . /* insert, code here*/ 5. /* insert code here */ 6. } 7. public static void foo(List < Object > list) { 8. } }
ArrayList < Strinq > x1 = new ArrayList < String > ( ); foo(x1);
ArrayList < Object > x2 = new ArrayList < String > ( ); foo(x2);
ArrayList < Object > x3 = new ArrayList < Object > ( ); foo(x3);
ArrayList x4 = new ArrayList ( ); foo(x4);