Assuming that I have a class named Class
,
And I would like to make a new ArrayList that it's values will be of type Class
.
My question is that: How do I do that?
I can't understand from Java Api.
I tried this:
ArrayList<Class> myArray= new ArrayList ArrayList<Class>;
question from:https://stackoverflow.com/questions/5915892/creating-a-new-arraylist-in-java