Enhanced / advanced for loop in Java
————————————————————————————————————————- Enhanced for loop is applicable only for arrays, Arrays can be of int or string type… let’s see the old style of writing of for loop in java. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 public class ForLoop { public static void main(String[] args)…