Check out example codes for "java difference ++i and i++ loop". It will help you in understanding the concepts better.

Code Example 1

//no difference in a loop.
for (int i = 0; i < 100; i++) {
}

for (int i = 0; i < 100; ++i) {
}
//however when doing:
int a = 0;
int b = a++; // b = 0; a = 1

a = 0;
b = ++a; // b = 1; a = 1

Learn ReactJs, React Native from akashmittal.com