java eclipse write a class called Dice. The class has only one data member.lengt
ID: 3609850 • Letter: J
Question
java eclipsewrite a class called Dice. The class has only one data member.length (int). Provide set and get fir the data member. Also providea method that returns randomly a number from 1 to the length of thedice. Write a test "main" for this class that creates a gamebetween two players and uses two dices. Each player through thedices 5 times. The one who gets more, wins.
thanks,,