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
Get step-by-step solutions from verified subject matter experts
