Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

java.util.Comparator

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

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.

Share: 

 

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.




Tagged: