Im looking to see if it is at all possible to create an array of type, where the type is passed in as a parameters for example:
public void doSomething(Class<?> itemClass){
ArrayList<itemClass> newItems = new ArrayList<itemClass>();
}
But that obviously doesn't compile. Is it possible to do something like this?