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

Code Example 1

for (int counter = 0; counter < arrlist.size(); counter++) { 		      
          System.out.println(arrlist.get(counter)); 		
      }

Learn ReactJs, React Native from akashmittal.com