Challenges

Put and Get Values

Complete the method createColorMap that creates a Map<String, String> to store color names and their hex codes. Add the following entries: 'Red' -> 'FF0000', 'Green' -> '00FF00', 'Blue' -> '0000FF'. Then return the hex code for the color passed as the parameter colorName. Use the put() method to add entries and get() to retrieve values.

Editor
Test Results

Result Panel

Hit the run button to test your code!