I have this static method declared in class A as follows :
public static boolean staticMethod(List<Object> list)
and I want to call it as follows
List<String> list = new ArrayList<String>();
boolean b = A.staticMethod(list);
Why does it not compile ?
The method staticMethod(List<Object>) in the type ArrayListHelper is not applicable for the arguments (List<String>)
I want to write a generic method doing specific handlings on List objects holding objects from a subclass of Object.
Thanks.