X1022: Picture everyOtherRowBlack

Given a Picture object called pic, use nested for loops and getPixel() to turn every other row of pixels black. To be clear, after this method runs, all pixels in row 0 should be black. The same is true for 2, 4, and so on.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.