Page 1 of 1

Write a method called rollDice. The method is static with an integer return type and an integer parameter. The method wi

Posted: Thu May 05, 2022 1:02 pm
by answerhappygod
Write a method called rollDice. The method is static with an
integer return
type and an integer parameter. The method will simulate dice rolls
equal to
the integer parameter. The method will output the result of each
die roll.
The method will then return the sum value of all the dice rolls. A
dice roll
will be a number from 1 to 6, inclusive.