how to yous for of loop code example Example: for loop for(int i = 0; i < some_number; i++){ //inside loop do whatever you want }