Question: /** * * This method creates and returns a new array that * contains all the colors stored in the original array, * except those

/** ** This method creates and returns a new array that * contains all the colors stored in the original array, * except those colors that are equal to the target. For this * method, two colors are equal if they represent the * same color. *
* ** Note that target may be null, and 'pixels' may contain * null elements. Two null elements will be considered equal. *
* *This is problem #5 for programming assignment #7.
* *(Hint: Use Color.BLUE, Color.RED, etc. for testing.)
* * @param pixels An array of Color references * @param target The Color object to be removed * @throws NullPointerException If pixels is null */
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
