Write Method Booleanisvalid Takes List 3 Boolean Values Argument Returns True Entries Arra Q37277510

  1. 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;}

color{blue}Please;let;me;know;if;you;have;any;doubts Please;upvote;this;answer.;;Thanks!!

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.