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
Material please go through this Link And also try this
ArrayList<Class> myArray= new ArrayList<Class>();
You can use in Java 8
List<Class> myArray= new ArrayList<>();
Fixed the code for you: