Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
D
L
M
P
R
W
D
displayResults()
- Method in class lottery.
Powerball
Prints out the results of the play() method.
L
lottery
- package lottery
M
main(String[])
- Static method in class lottery.
PlayLottery
P
play()
- Method in class lottery.
Powerball
Generates five random, unique numbers to simulate the five white balls selected, and generates a random number between 1 and 42 to represent the selected red ball.
PlayLottery
- class lottery.
PlayLottery
.
PlayLottery()
- Constructor for class lottery.
PlayLottery
Powerball
- class lottery.
Powerball
.
The Powerball class simulates the Powerball lottery.
Powerball()
- Constructor for class lottery.
Powerball
Constucts a Powerball object by initializing the white field to a new array of 5 ints.
R
red
- Variable in class lottery.
Powerball
Represents the red power ball chosen.
W
white
- Variable in class lottery.
Powerball
An array that contains the five white balls chosen.
D
L
M
P
R
W
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes