@@ -0,0 +1,523 @@
+public class Dice%0A%7B%0A   private int value;  // current value showing on the die%0A  // Parameterless Constructor: Sets the initial face value of this die.%0A  public Die()%0A   %7B%0A      value = 1;%0A   %7D%0A  // One parameter constructor.%0A  public Die(int value)%0A   %7B%0A     this.value = value;%0A   %7D%0A  //Accessor%0A  public int getValue()%0A   %7B%0A      return value;%0A   %7D%0A  //  roll computes a new face value for this die and returns the result.%0A   public int roll()%0A   %7B%0A      value = (int)(Math.random() * 6) + 1;%0A      return value;%0A   %7D%0A%7D%0A

create file