Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
Which line of code successfully creates an ArrayList?
ArrayList
ArrayList<int> list = new ArrayList<int>();
ArrayList<int> list = new ArrayList<int>;
ArrayList<Integer> list = new ArrayList<Integer>();
ArrayList<Integer> list = new ArrayList<Integer>;
None of the above are correct