Need some help for java class homework
Question 1 : Write a complete method (including a full method header) called contains.
The method:
takes an int array and an int variable as parameters
returns true if the array contains the value; returns false otherwise
For example, invoking contains with [3, 1, 4, 6] and 5 would return false (5 is not in the array). Invoking contains with [3, 1, 4, 6] and 6 would return true (6 is in the array).
Question2 : Write a complete method to do the following:
Create an array that holds 100 integers
Fill the array with random numbers between 0 and 500 (inclusive)
Loop through the array and print to the screen any number that is divisible by 7
Make sure the code is inside of a complete method- not inside of main.