what can be the special use of enhance loop to make our program better and how can we choice between for loop and enhance for loop?
Enhance for loop
When you dont know the size of structure like a set or a map. there the enhance loop is preferred over the standard one. Also if the indexing relation is not known (like you do not know the indexes of the element)