I need two methods. The first method throws four dice and returns the dice sum. The second method estimates the sum and print “excellent” if the sum is greater than 20, “good” if the sum is greater 12 or sum is less than or equal to 20 and “poor” if the sum is less than or equal to 12.
The dice are thrown by writing the rows
Random ran = new Random ();
int throwingdice = ran.nextInt(1,7);
i tried many times but it wont work, any ideas?
Thank you in advance.
this should help you get started…