Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds


  Asked By: Glenn    Date: Nov 28    Category: Java    Views: 512

In the method:public static int
java.util.Arrays.binarySearch(Object[] a,Object key,Comparator c)does
the Comparator call
java.util.Comparator.compare(a[i],key) or
java.util.Comparator.compare(key,a[i])?I can't seem to find any
information telling the
order of the call.



1 Answer Found

Answer #1    Answered By: Balbir Kaur     Answered On: Nov 28

Sorry about the stupid question. I wasn't thinking straight it's monday. Of
course I develop the Comparator and decide how to use it.

Didn't find what you were looking for? Find more on java.util.Comparator Or get search suggestion and latest updates.