I'm attempting to use a generic type given on the fly to my method as the type for a given data structure similar to a map in function, but that uses only one class on declaration. It's more like an ArrayList with keys. So, what I'm attempting to do is:

```
private final ArrayList<T extends Object> findGroup(final String key, final String classType)
{
     Class<?> c = Class.forName(classType);
     ArrayList<c.class> listOfStuff = new ArrayList<>();

     return listOfStuff;
 }

```

The error I am getting occurs on the .class call.
I have tried c.getClass(), as well as making another Class object from c.class just to see if it works, but couldn't get it working.

Is there some preferred method for this?

Yes, I know that some of this tends to be a bit processing heavy, but I need it for what I'm doing.