/** * Write a description of class TestProgram here. * * @author Dave Slemon * @version v100 */ public class TestProgram { public static void main(String[] args) { int amt = 0; Die d = new Die(); int[] count = new int[7]; System.out.println("Rolling a Die 500 times\n"); //rolling a single die 500 times for(int i=0; i< 500; i++) { amt = d.roll(); count[amt]++; } System.out.println("Histogram: the frequency of occurrences"); for(int k=1; k< 7; k++) { System.out.printf("%2d: %2d ",k , count[k]); for(int j=0; j