When I enter this code in Eclipse I get and error at these two lines
Dice dice1 = new Dice();
Dice dice2 = new Dice();
Type: Posts; User: bespinoz
When I enter this code in Eclipse I get and error at these two lines
Dice dice1 = new Dice();
Dice dice2 = new Dice();
(Game: craps) Craps is a popular dice game played in casinos. Write a program to play a variation of the game, as follows: Use a class to define the method getDice, and make sure that the method is...
import java.util.Random;
public class Assignment_5_1 {
public int getDice(){
Random r = new Random();
return r.nextInt(6)+1;
}
}