In the following Excel spreadsheet, I need to make the following calculations:
Input Color Selected Output ------- -------------- -------- 40 red 40x18 40 blue 40x12 40 green 40x16 40 yellow 40x13 39 red 39x18 28 blue 28x12 33 green 33x16 25 yellow 25x13
My question is, how can I assign values to the colors being selected using Java?