I\'m googling it and can\'t seem to find the syntax. My arraylist might be populated differently based on a user setting, so I\'ve initialized it
arraylist
If you needed to add a lot of integers it'd proabbly be easiest to use a for loop. For example, adding 28 days to a daysInFebruary array.
ArrayList daysInFebruary = new ArrayList<>(); for(int i = 1; i <= 28; i++) { daysInFebruary.add(i); }