regarding performance with java code: which action would be better and why?:
given the following array for example:
int[] arr = new int[n];//n is a random int
Which method would you choose to increment parts of arr
for the best speed performance?
arr[i++] = x;//x and i are random ints
or
arr[i] = x;
++i;