This preview shows page 1. Sign up to view the full content.
Unformatted text preview: Die die2 = new Die(6); // Roll both dice die1.roll(); die2.roll(); int num1 = die1.getFace(); int num2 = die2.getFace(); System.out.println("You rolled a " + num1 + " and a " + num2 + " for a total of " + (num1 + num2)); } }...
View Full Document
This note was uploaded on 03/05/2011 for the course CSCI 384 taught by Professor Drchan during the Spring '11 term at CA Health Sciences.
- Spring '11