# | Line 27 | Line 27 | |
---|---|---|
27 | * @summary Test Collections.binarySearch() with a null comparator | |
28 | */ | |
29 | ||
30 | – | |
30 | import java.util.*; | |
31 | ||
32 | public class BinarySearchNullComparator { | |
33 | < | public static void main(String args[]) throws Exception { |
33 | > | public static void main(String[] args) throws Exception { |
34 | List list = Arrays.asList(new String[] {"I", "Love", "You"}); | |
35 | ||
36 | int result = Collections.binarySearch(list, "You", null); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |