X944: ArrayLists 2

The method below takes in a Pixel object called p as a parameter. In the body of the method below, declare and instantiate an ArrayList (again you can name it whatever you want), then add the Pixel object p to the array list. Finally return the ArrayList.

Your Answer:

Reset

Practice a different Java exercise

Feedback

Your feedback will appear here when you check your answer.