I want to declare an ArrayList of type int.
ArrayList
int
Why does the following give me an error:
ArrayList list1 = new Array
int is a primitive data type but Integer is a class so an arrayList array can only take reference types as its parameter not primitive type