Question: Write a program that the following methods: 1 contains: this method takes an array of integers and an int x , and returns true if

Write a program that the following methods:
1 contains: this method takes an array of integers and an int x, and returns true if the array contains the value x, and false otherwise.
Example: if the array had the values {2,7,3} and x =7 then the method returns true. But if x =0 then the method returns false.
2 reverse: this method takes an array of integers and returns a new array that is the reverse of the parameter.
Example: if the array ={6,2,9,5} then the method returns an array with the values reversed {5,9,2,6}.
3 equals: this method takes 2 integer arrays and returns true is both arrays are equal and false otherwise.
Solve with java.

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