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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!