Assuming that I have a class named Class,
Class
And I would like to make a new ArrayList that it\'s values will be of type Class.
My question
You are looking for Java generics
List list = new ArrayList();
Here's a tutorial http://docs.oracle.com/javase/tutorial/java/generics/index.html