X947: For-Each Loops 1

For this question you will be using Pixel objects and one Picture object, as described in Reading Activity 06. The following method uses a for-each loop to iterate over each Pixel object in the picture. Complete the for-each loop so that it sets the red value of each Pixel to 255, green to 247, and blue to 0.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.