Question: For the class Craps in Fig. 5.8, state the scope of each of the following entities: a) the variable randomNumbers. b) the variable die1. c)
For the class Craps in Fig. 5.8, state the scope of each of the following entities:
a) the variable randomNumbers.
b) the variable die1.
c) the method rollDice.
d) the method main.
e) the variable sumOfDice.
Fig. 5.8

I // Fig. 5.8: Craps.java 2 // Craps class simulates the dice game craps. 3 import java.security.SecureRandom; 4 5 6 7 public class Craps { // create secure random number generator for use in method roll Dice private static final SecureRandom randomNumbers = new SecureRandom());
Step by Step Solution
3.38 Rating (160 Votes )
There are 3 Steps involved in it
The image youve provided shows part of the Crapsjava class for a game simulation of craps and includ... View full answer
Get step-by-step solutions from verified subject matter experts
