Description: Write a lottery simulation program:* first prompts the user to play:* Play one: 21 Select 5* Enter five different numbers (21 selected 1,2,3 .....)* Play two: 6+1* Enter seven number (the number of representatives to buy lottery tickets, the last one is especially number)* Based on user-selected play, randomly generated lottery number, compared with the number entered by the user to determine whether the win, in a few prize, selected output* 21 5* First prize: the same five numbers* Second prize: four numbers the same* Third prize: the same three numbers* 6+1* Grand Prize: 6+1* First Prize: 6* Second Prize: Five consecutive same number* Third prize: four consecutive same number* Fourth Prize: the same three numbers in a row
To Search:
File list (Check if you may need any files):
Lottery\main.java
Lottery