Add additional colors until you have 12 total colors, one for each white piano key. You can use the Color Chart of RGB Triplets from the textbook to choose colors. Also, you may use the same color more than once. Once you have added the colors, compile the Piano class to verify there are no errors.

In the makeKeys() method Piano class, at the end of the loop that makes white keys, add the following statement:

key.setColor(whiteKeyColors[i]);

Compile your Piano class and verify there are no errors.

If you have problems, ask a classmate or the instructor for help as needed.

Inside the if-statement of the loop for making black piano keys, add random colors using the following code: