Menu

(Solved) : Using Inner Class Discussed Class Simulate Playing Match4 Program Must Continue Running On Q43930594 . . .

Using inner class discussed in class, simulate that you areplaying Match4:

The program must continue running until one of these twosituations occurs:
            1.Press Ok on the JOptionPane (if you press the button it should say”You lost !!!”).
            2.If the number entered is in the Paste4, you must say You won!.
They must implement an interface called ask (). Which will ask thedesired number.

The interval that is every 1 second and that makes a “beep”.Show how many rolls were made.

Note: Investigate how to generate random numbers. Remember thatMatch4 goes from 1000 to 9999.

The output would be as follows:

—————————————————————————————————

Enter desired number: 3267

07/09/2019 09:50:23:

   roll # 1: 4392

   roll # 2: 8391

You lost !!!

—————————————————————————————————

Enter desired number: 4912

07/09/2019 09:50:23:

   roll # 1: 4931

   roll # 2: 9450

   roll # 3: 4912

Won !!!

This must be done in Eclipse Java 2019-09 (Java language ofcourse)

Thepaste is where the number added will be the paste that willconclude whether the person won or lost

Expert Answer


Answer to Using inner class discussed in class, simulate that you are playing Match4: The program must continue running until one …

OR