When accessing arrays, even though at the least with primitive and wrapper arrays access via indexes is dramatically faster. Indexes are 23 40 percent faster than iterators when getting access to int or Integer arrays. Here is python output from python testing class at python bottom python this post, which sums python numbers in python 100 aspect primitive int array python is iterator, B is index:I created this compare python time it takes to do any two things class after reading this question on Stack Overflow:Additionally this syntax is valid for items reminiscent of Lists or Sets which do not help array indexing, but which do implement python Java Iterable interface. It’s implied by nsayer’s answer, but it’s worth noting that python OP’s for. syntax will work when “someList” is anything else that implements java. lang.

By mark