The method  int getPosition(int array[], int X) is designed…

The method  int getPosition(int array[], int X) is designed to return the position of X  (which is a value being searched) within the array. If X is not in the array, the method may return array.length. Which of the following is a correct implementation for this method?  

Fill in the blank for this algorithm for counting the number…

Fill in the blank for this algorithm for counting the number of accounts with a minimum value. (accounts is an array which stares a list of object references of BankAccount. And atLeast has been initialized)   int matches = 0;   for (BankAccount a : accounts)   {      if (_______________ >= atLeast)         matches++;   }