I have a similar problem that is described below:
iterate static int values in java
The difference is that in my class I have elements that are ArrayLists (all ArrayLists contains elements of the same type), not primitive types.
I would like to know whether it is possible to iterate elements and inside this loop iterate declared ArrayList?
You can directly iterate over
ArrayLists, so your example is different from the link you posted, they needed to use reflection to iterate them because they weren’t already grouped into a container: