Question: Please do it in java language. Using inner class, simulate that you are playing lottery of two numbers 2: The program must continue running until

Please do it in java language. Using inner class, simulate that you are playing lottery of two numbers 2: The program must continue running until one of these two situations occurs: 1. Press Ok on the JOptionPane (if you press the button it should say "You lost !!!"). 2. If the number entered comes out in the paste, "You won !!!". The interval that is every 2 seconds and that makes a "beep". That shows how many runs were made. Add exception handlings. The output would be as follows: -------------------------------------------------- -------------------------------------------------

Enter a number between 0 and 99:

39 02/01/2018 09:50:23:

roll # 1: 32

roll # 2: 82

roll # 3: 12

roll # 4: 56

roll # 5: 46

roll # 6: 39 You won after 6 rolls!

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!