Question: In java, write a method(myMethod) that takes an argument of an array [20 random integers between 500], and an int variable (int y), then the
In java, write a method(myMethod) that takes an argument of an array [20 random integers between 500], and an int variable (int y), then the return should be T/F depending if y matches an integer in the array. The method should be called from the main method. Array and y should be declared in main method, an additional message should be included to tell the user if the number(y) is one of the numbers listed in the array.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
