Question: Java 2. Rolling Dice Write a complete Java class (RollingDice) that simulates the rolling of a pair of dice. For each die in the pair,
2. Rolling Dice Write a complete Java class (RollingDice) that simulates the rolling of a pair of dice. For each die in the pair, the program should generate a random number between 1 and 6 (inclusive). It should print out the result of the roll for each die and the total roll (the sum of the two dice), all labeled appropriately. You must use the Random class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
