Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
I
M
N
T
I
isHeads()
- Method in class
TossableFairCoin
Reports whether or not the coin is showing heads.
isTails()
- Method in class
TossableFairCoin
Reports whether or not the coin is showing tails.
M
main(String[])
- Static method in class
TossableFairCoinTester
N
numHeadsTossed()
- Method in class
TossableFairCoin
Reports the number of times during its lifetime that the coin has been tossed to yield heads.
numTailsTossed()
- Method in class
TossableFairCoin
Reports the number of times during its lifetime that the coin has been tossed to yield tails.
numTimesTossed()
- Method in class
TossableFairCoin
Reports the number of times during its lifetime that the coin has been tossed.
T
toss()
- Method in class
TossableFairCoin
Tosses the coin, after which there is a probability of 1/2 that the coin shows heads, and similarly for tails.
TossableFairCoin
- Class in
<Unnamed>
An instance of this class models a coin that can be tossed to yield heads or tails, with equal probability.
TossableFairCoin()
- Constructor for class
TossableFairCoin
Initializes the coin's fields.
TossableFairCoinTester
- Class in
<Unnamed>
TossableFairCoinTester()
- Constructor for class
TossableFairCoinTester
toString()
- Method in class
TossableFairCoin
Returns a string indicating which side of the coin is showing, heads or tails.
I
M
N
T
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes