I need help creating a JAVA file called GameDice based off of this UML diagram:
________________________________________________________________________________________
Dice
-numSides : int
-primColor : String
-secondColor : String
-numColor : String
-sideValue : int[]
<
+getNumSides() : int
+getPrimColor() : String
+getSecondColor() : String
+getNumColor() : String
+getSideValues() : int[]
+setNumSides(numSides : int)
+setPrimColor(primColor : String)
+setSecondColor(secondColor : String)
+setNumColor(numColor : String)
+setSideValues(sideValues: int[])
+roll() : int
________________________________________________________________________________________
The first die has 20 sides, values 1-20, primary color is red and the secondary color is blue, the color of the numbers is silver
The second die has 10 sides, values 00, 10, 20, 30, 40, 50, 60, 70, 80, 90, the primary color is green and the secondary color is yellow, the color of the numbers is bronze
Display all of the attributes of each die. Then ask the user of the program if they want to play a game. If they do, ask which die they think will roll a 20 first. The first or second die? Take turns rolling each die until one of them finally roll a 20, displaying the value of each roll for each die. Once the 20 has been rolled, tell the user if they won or lost and ask if they want to play again.