I found that you can call a generic method with a special Type, e.g.:
suppose we have a generic method:
class ListUtils {
public static <T> List<T> createList() {
return new ArrayList<T>();
}
}
we can call it like:
List<Integer> intList = ListUtils.<Integer>createList();
But how can we call it when it's statically imported? e.g.:
List<Integer> intList = <Integer>createList();
this does not work.