/** informally exercise class GameDie can compile this to Java bytecode using the command: javac GameDieTest.java can run this using this resulting bytecode using the Java Virtual Machine (JVM) with the command: java GameDieTest @author Sharon Tuttle @version 2015-08-26 */ public class GameDieTest { /** informally exercise class GameDie (and output the results to standard output) @param args not used here */ public static void main(String[] args) { GameDie cube = new GameDie(6); GameDie dodeca = new GameDie(12); System.out.println("rolling cube: " + cube.roll()); System.out.println("rolling cube: " + cube.roll()); System.out.println("rolling dodeca: " + dodeca.roll()); System.out.println("rolled cube: " + cube.getNumRolls() + " times"); System.out.println("rolled dodeca: " + dodeca.getNumRolls() + " times"); System.out.println("cube has: " + cube.getNumSides() + " sides"); System.out.println("dodeca has: " + dodeca.getNumSides() + " sides"); } }