Which of the following correctly shows the general structure of a for-each loop header?for (initialization; condition; increment)foreach (value array : condition; array-length-specifier)foreach (type variable-name : array-or-collection)for (type variable-name : array-or-collection)for (type variable-name : array-or-collection)-On each iteration the next element can be accessed using the specified variable.

Respuesta :

Answer:

for (type variable-name : array-or-collection)-On each iteration the next element can be accessed using the specified variable.

Explanation:

the general structure of a for-each loop header is represented as :

for (type variable-name : array-or-collection) - On each iteration the next element can be accessed using the specified variable.

In other words it can be represented as:

for (type variable-name : array-or-collection)

{  

   //On each iteration the variable-name will contain the next value in the array or collection and this value can be referenced in the loop body using the variable-name.

}

ACCESS MORE