Write a Java class calledContainsInRange. This class defines a method calledcontains(), which takes as parameters an integer arraya, an integerx, an int calledstart, as well as an int calledend, and returns a boolean which is true if and only ifx occurs in a at a position which is greater than or equal tostart, and less thanend. You must validate that start is less than or equal to end, and that both start and end are greater than or equal to 0, and less than or equal to a.length. Repeat the operation often.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here