C D H L M P S T
C
- Coin - class Coin.
Coin
objects simulate a coin that, when tossed, has an equal
probability of turning up heads or tails.- Coin() -
Constructor for class Coin
- Constructs a coin that has not yet been tossed; neither
heads
nor tails
will return
true
until the toss
method is
invoked.
D
- display() -
Method in class Histogram
- Displays the histogram.
H
- heads() -
Method in class Coin
- Reports whether the last coin toss came up heads.
- Histogram - class Histogram.
- Environment-Based Applications:
The Histogram class constructs a histogram of a set of integer values. - Histogram(String, int[], int) -
Constructor for class Histogram
- Constructs a histogram for the specified values and displays it.
- Histogram(String, int, int) -
Constructor for class Histogram
- Constructs a histogram for a certain number of values.
- HistogramLab - class HistogramLab.
- Environment-Based Applications:
The HistogramLab class [does what?]. - HistogramLab() -
Constructor for class HistogramLab
-
L
- labelColumns() -
Method in class Histogram
- Label the "x-axis" of the histogram with the values represented by
each column.
- labelColumns(int) -
Method in class Histogram
- Label the "x-axis" of the histogram with the values represented by
the columns; which columns are labeled depends on the
periodicity
.
M
- main(String[]) -
Static method in class HistogramLab
- Start the Histogram program.
P
- plot(int, int) -
Method in class Histogram
- Plots a row in the histogram; assumes that the histogram was created
with the first constructor.
- plot(String, int, int) -
Method in class Histogram
- Plots a labeled row in the histogram; assumes that the histogram was
created with the first constructor.
S
- setSeed(long) -
Static method in class Coin
- Seeds the random number generator used by coins.
T
- tails() -
Method in class Coin
- Reports whether the last coin toss came up tails.
- toss() -
Method in class Coin
- Tosses this coin.
C D H L M P S T
Copyright© 2003 Alyce Brady