This is my code so far. I'm kind of new with ArrayLists.
public void fill(int []arr){
ArrayList<Integer> intList = new ArrayList<Integer>();
}
Thats all I have so far. I don't know how to put all of the elements from int[] arr
into the new ArrayList
. The elements should be in order as well.