logo

Crowdly

Explain the purpose of the following method:   public static boolean check(i...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Explain the purpose of the following method:

 

public static boolean check(int[] iNumbers){

   boolean bValid = true;

   for (int i = 0; i < iNumbers.length - 1; i++) {

      if (iNumbers[i] >= iNumbers[i + 1]) {

         bValid = false;

      }

   }

   return bValid;

}

More questions like this

Want instant access to all verified answers on moodle.polytechnic.bh?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!