public class DiceTester { public static void main (String[] args) { // create a Dice object w/3 dice Dice dice1 = new Dice(3); // create a Dice object w/7 dice Dice dice2 = new Dice(7); // roll all of the dice dice1.roll(); dice2.roll(); // print the 3-dice Dice object System.out.println ("dice1: " + dice1); // print the 7-dice Dice object System.out.println ("dice2: " + dice2); // print the 3rd die in the 7-dice object System.out.println ("3rd die: " + dice2.getDie(2).getFace()); } }