I have been trying to evaluate the performance of for loop.
I had a look at this and this.
But I have not yet understood what is the correct way to measure the performance of for loops.
Should we also consider inserting some elements in the data structure like ArrayList?
There is another link which also say something about it.