1.

For each alternative in java​

Answer»

Answer:

Explanation:

The Java for-each loop or enhanced for loop is INTRODUCED since J2SE 5.0. It provides an alternative approach to TRAVERSE the array or collection in Java. It is MAINLY used to traverse the array or collection elements. ... It is known as the for-each loop because it traverses each element ONE by one.



Discussion

No Comment Found