Question: In this lab, you will implement the anyOF ( ) , allOf ( ) , and noneOf ( ) algorithms in Java. For each one,

In this lab, you will implement the anyOF(), allOf(), and noneOf() algorithms in Java. For each one, you will implement a version for integers, and one for Strings.
Here are the descriptions of each function:
boolean anyOf(int[] a, int value)
boolean anyOf(String[] a, String value)
anyOf() returns true if any element of array a is equal to value, and false otherwise.
boolean allOf(int[] a, int value)
boolean allOf(String[] a, String value)
allOf() returns true if every element of array a is equal to value, and false otherwise.
boolean noneOf(int[] a, int value)
boolean noneOf(String[] a, String value)
noneOf() returns true if no element of array a is equal to value, and false otherwise.
See Main.java for instructions on running the tests, along with some example input and output.
Do NOT edit Main.java or InputUtils.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!