- Write a method booleanisValid() that takes a list of 3 booleanvalues as argument and returns true if any of the entries in thearray is true, and false otherwise.
This can be done in 4 lines (2of the lines are { and } )
Fill in the Solution:
public static boolean isValid(______ _______, ______ _______,______ _______)
{
return(true);
}
Java language, thank you.
Answer
public static boolean isValid(boolean n1, boolean n2, boolean n3) { return n1 || n2 || n3;}