Write a for-each loop that prints all elements in a collection of Student objects called role. What is required for that loop to work?
What will be an ideal response?
```
for (Student pupil : role)
System.out.println(pupil);
```
Computer Science & Information Technology