Rudimentary test of java loops foreach vs forindex
Application creates 1_000_000 elements integer list,
which is accessed in one new thread using foreach loop,
and immediately followed by another new thread doing same task using forindex loop (for i).