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