Computer Science, asked by roygarima2004, 5 days ago

Explain how for loops can be used to work effectively with elements in an array?

Answers

Answered by IdrisLokhande
0

Answer:

For loops are indeed useful and work effectively in this case, since you can make this loop to visit each and every element of the array in less statements. There is another variant of this - the advanced for-loop, that works more effectively than the normal one in Java, made specifically for visiting each and every element in an array / list.

Hope this helped

Similar questions