What, if any, is the performance difference between the following two loops?
for (Object o: objectArrayList) { o.DoSomething(); }
and <
public class FirstJavaProgram { public static void main(String[] args) { int a[]={1,2,3,45,6,6}; // Method 1: this is simple way to print array for(int i=0;i