Question: Write method call colorMixer, which has two parameters of type char (representing two primary color). The method will return a string, which is the
Write method call colorMixer, which has two parameters of type char (representing two primary color). The method will return a string, which is the mixed color of the two primary colors given. The method header is like this. public static String colorMixer(char color1, char char2) The valid values for color1 or color2 are R, B. and Y, standing for red, blue, and yellow respectively Color mixing follow these rules Mix red and blue, get purple Mix red and yellow, get orange Mix blue and yellow, get green
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
