// Lottery // attributes include the lottery array of 5 numbers // and the user's array of 5 numbers // constructor accepts the seed as a parameter // constructs a Random object // loops to generate 5 numbers in the range 0..9 // stores each number generated in the lottery array // calls runLottery method // run lottery method // calls get user's numbers // calls compare user's array with lottery array // calls determine winner which compares the two arrays item by item // can either declare loser as soon as non-match found OR // count matches and then check whether number of matches equals 5 or not // calls results prints OR returns message telling user whether they won or not // calls show array two times // once with lottery array // once with user's array // prints ending message // prompt user for 5 numbers 1 at a time in range 0 to 9 // use a loop to pick up the numbers // pick up each value user enters make sure it's in range