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