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 anyOfint a int value
boolean anyOfString a String value
anyOf returns true if any element of array a is equal to value, and false otherwise.
boolean allOfint a int value
boolean allOfString a String value
allOf returns true if every element of array a is equal to value, and false otherwise.
boolean noneOfint a int value
boolean noneOfString 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
