Question: (5 marks) Exercise 2: Design a Lotto class with one array instance variable to hold three random integer values (from 1 to 9). Include a

 (5 marks) Exercise 2: Design a Lotto class with one array

instance variable to hold three random integer values (from 1 to 9).

(5 marks) Exercise 2: Design a Lotto class with one array instance variable to hold three random integer values (from 1 to 9). Include a constructor that randomly populates the array for a lotto object. Also, include a method in the class to return the array. Use this class to simulate a simple lotto game in which the user chooses a number between 3 and

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!