This applet rolls a die the number of times the user specifies. It then reports on the frequency for each die roll. I wrote this applet by studying code from two applets in the book "Java: How to Program," by Deitel & Deitel. One of the two original applets demonstrated how to generate random numbers; the other allowed the user to enter a number, and the applet kept a running sum of all numbers entered. From these two examples and the text, I was able to figure out how to write Die.class.