Check out example codes for "for loop in java stack overflow". It will help you in understanding the concepts better.

Code Example 1

for(counter=10;counter>=1;counter--){  System.out.println(counter); }

Learn ReactJs, React Native from akashmittal.com