your teacher is right. what he/she wants you to create is a Dice class. in your case, you have created a simple program (with main method) which is capable of printing a random number of dice.
Here...
Type: Posts; User: dicdic
your teacher is right. what he/she wants you to create is a Dice class. in your case, you have created a simple program (with main method) which is capable of printing a random number of dice.
Here...
paste your code here, tell us what or where you're stuck. if it has compilation errors or runtime errors paste it here also.
have you tried using the Random class in java.util? its java.util.Random...