I wonder if there\'s such a way to iterate thru multiple collections with the extended for each loop in java.
So something like:
for (Object element
If your lists have the same length, just use the raw for loop:
for
Object[] aNum = {1, 2}; Object[] aStr = {"1", "2"}; for (int i = 0; i < aNum.length; i++) { doSomeThing(aNum[i]); doSomeThing(aStr[i]); }
It works!