I want to write a for-each loop that will repeat for every pixel in a collection of pixels called collection. What's the proper way to write this loop in Java?

for (Pixel pix : collection) { }
  • for (collection : Pixel pix) { }
  • for each (collection : Pixel pix) { }
  • for each (Pixel pix : collection) { }

There are not hints for this question