This seems very simple but I'm not understanding how to do this and haven't figured out how to phrase it for Google. I have a set of 12 ImageViews declared in XML, so I want to declare them all in a for loop, using something like
for(int i = 1; i < 13; i++) {
ImageView moles[i] = FindViewById(R.id.mole + i);
}
But I'm not understanding how to declare the argument for FindViewById.