For one array I can iterate like this:
for(String str:myStringArray){ } How can I iterate over two arrays at once? Because I am sure these two's length are equal.I want it like the following:
for(String attr,attrValue:attrs,attrsValue) { } But it's wrong.
Maybe a map is a good option in this condition, but how about 3 equal length arrays? I just hate to create index 'int i' which used in the following format:
for(int i=0;i<length;i++){ }
forloop with a counter instead of an enhancedforloop. Determine how many iterations you want total, then call the index in each array that you want.