I am trying to do some basic stuff with java. I know how to do arrays, but not ArrayList.
" Write a single Java statement that declares and initializes an ArrayList of integers named values"
For a simple array I used int [] values ;
so far I have come up with this, but Im not sure if its correct.
new ArrayList<Integer>(Arrays.asList(values));