For example, is it possible to do something like this:
public void doSomething(Class clazz) { List<clazz> list = new ArrayList<clazz>(); list.add(clazz.newInstance)); } I know this doesn't work, but it shows what I'm trying to get at. Is there any way to parameterize the creation of generic class?
Thanks, Peter
instanceof?