Question: 2.Please write a class that contains the followings; - myArray(Instancevariable): integer array. - Constructor method: defines myArray size with the given parameter - fillArraymethod: take

 2.Please write a class that contains the followings; - myArray(Instancevariable): integer

2.Please write a class that contains the followings; - myArray(Instancevariable): integer array. - Constructor method: defines myArray size with the given parameter - fillArraymethod: take a one non-negative integer parameter (name: limit). this method fill the array with random numbers between 0 and limit parameter. - searchArraymethod: takes one integer parameter named searchingValue. This method return true if find a searchingValue parameter in array, return false if not find a searchingValue parameter in the array. - printOutmethod: this method print array content

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 Programming Questions!