Dear friends,

I have just registered to antionline and I am a very new user.

I have an assignment to make :

I have a problem of making a dice simple game using Java. I am new to Java program and know a little about it. Could you help me?


These are the questions :

Senario :

I have been asked to write a simple program ( using Java ) which determine and display player that obtain the highest dice value among the four player. Dice value for each player will be given by the system randomly. For this reason, I have to make two coding :

( a )The first coding must have a Class that can shows the value of dice randomly between 1 until 6 which are given by the system itself.

( b )Secondly, I need to make another coding that is Aplication Coding to decide which player will get the highest dice value among the four player. Meaning that, I have to combine the class from ( a ) to obtain the random value for each player.


The desire Output Format are as followed :

Ourput Example :


Dice Value for player One : 4
Dice Value for player Two : 2
Dice Value for player Three : 1
Dice Value for player FOur : 2

Player One obtain the highest dice value.


Thank you.

[email protected]