logo

Crowdly

Explain the purpose of the following method:   public static int check(int[]...

✅ 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 int check(int[] aiNumbers) {

   int val = aiNumbers[0];

   for (int iLoop = 1; iLoop < aiNumbers.length; iLoop++) {

      if (aiNumbers[iLoop] < val) {

         val = aiNumbers[iLoop];

      }

   }

   return val;

}

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!