Enhanced for Loop (Lesson-21)
In the previous lesson you learnt how you can use loops to cycle through arrays. There is a loop called enhanced for loop which is used to traverse the elements of the array. The syntax of enhanced for loop goes something like this: DataType arrayName; //initialize the array for (DataType temporaryVariable : arrayName) { /* … Read more Enhanced for Loop (Lesson-21)