I understand that when you iterate a regular array element it is like so:
int[] counter = new int[10];
for loop{
counter[i] = 0;
}
when button clicked{
counter[0]++; //For example
counter[6]++;
}
However I'm not understanding how to iterate through elements of an arraylist. If someone could help me understand I'll be appreciative. Thanks!