Is it possible to get the type of a generic parameter?
An example:
public final class voodoo {
public static chill(List<?> aListWithTypeSpiderMan) {
// Here I'd like to get the Class-Object 'SpiderMan'
Class typeOfTheList = ???;
}
public static void main(String... args) {
chill(new List<SpiderMan>());
}
}
~Chris