So I understand that you have to make a "new" object when adding an object to an arraylist:
ex: ArrayList<CookieOrder> orders = new ArrayList<CookieOrder>(); orders.add(new CookieOrder("cookie", 5)); but do you have to do this when the arraylist consists of only one data type
ex: ArrayList<int> numbers = new ArrayList<int>(); numbers.add(new int(2)); or numbers.add(2);