A C D L M Q R T V W 

A

autofill() - Method in class LotteryTicket
Autofiils a ticket with random numbers

C

checkWins(LotteryTicket) - Method in class LotteryDraw
Check to see which numbers on the given ticket match the draw Writes to System.out the matching ones

D

draw() - Method in class LotteryDraw
Executes a draw

L

list() - Method in class LotteryDraw
Prints info on this lottery
list() - Method in class LotteryTicket
Prints to System.out the contents of this ticket
LotteryDraw - Class in <Unnamed>
LotteryDraw simulates alottery draw from a given set of numbers
LotteryDraw() - Constructor for class LotteryDraw
Constructor LotteryDraw objects parameterless; constructs a 6 out of 49
LotteryDraw(int, int) - Constructor for class LotteryDraw
Constructor LotteryDraw objects
LotteryTicket - Class in <Unnamed>
Simulates a lottery ticket
LotteryTicket(int, int) - Constructor for class LotteryTicket
Constructor for objects of class LotteryTicket

M

main() - Static method in class TestLottery
 

Q

QUOTA_NUMBERS_DRAWN - Static variable in class LotteryDraw
class invariant: a value used to determine the quota of numbers taht can be drawn
QUOTA_NUMBERS_DRAWN - Static variable in class LotteryTicket
invariant: the quota of numbers which can be drawn, i.e.

R

readNumbers() - Method in class LotteryTicket
Accepts numbers to write on this tiicket from System.in and writes them on the ticket

T

TestLottery - Class in <Unnamed>
Class used to exercise classes LotteryDraw and LotteryTicket
TestLottery() - Constructor for class TestLottery
 
toString() - Method in class LotteryDraw
Returns a String representation of this LotteryDraw object
toString() - Method in class LotteryTicket
Returns a String with the numbers on this lotto ticket

V

VAL_MAX - Static variable in class LotteryDraw
class invariant: the highest number value that can be drawn for any LotteryDraw object
VAL_MAX - Static variable in class LotteryTicket
invariant: the highest number which can be written on any lottery ticket

W

whatNumbers() - Method in class LotteryTicket
returns an array of numbers written on this ticket
A C D L M Q R T V W