Question: (Java)A Color class has three integer color component instance variable: red, green, and blue. Write a toString method for this class. It should return a
(Java)A Color class has three integer color component instance variable: red, green, and blue.
Write a toString method for this class. It should return a string consisting of the three color components (in the order red, green, blue) within parentheses, separated by commas, with a '#' prefix e.g. #(125, 30, 210)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
