Class Dice

java.lang.Object
  extended by Dice

public class Dice
extends java.lang.Object


Field Summary
private  int myOne
           
private  int myTwo
           
 
Constructor Summary
Dice()
           
 
Method Summary
 boolean doubles()
           
private  int random()
           
 void roll()
           
 java.lang.String toString()
           
 int total()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myOne

private int myOne

myTwo

private int myTwo
Constructor Detail

Dice

public Dice()
Method Detail

roll

public void roll()

total

public int total()

doubles

public boolean doubles()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

random

private int random()