Дано:
public class GeoCache {
public static void main(String[] args) {
String[] s = {"map", "pen", "marble", "key"};
Othello o = new Othello();
Arrays.sort(s, o);
for (String s2 : s) System.out.print(s2 + " ");
System.out.println(Arrays.binarySearch(s, "map"));
}
static class Othello implements Comparator<String> {
public int compare(String a, String b) {
return b.compareTo(a);
}
}
}
Какие утверждения верны? (Выберите все подходящие.)
Please log in or register to have a possibility to add comment.