blob: 5afc86949286464f8b92d84ffa796dc766f730ce (
plain)
1
2
3
4
5
6
7
8
9
|
package walter2;
import java.util.*;
public class MyComp implements Comparator {
public int compare(Object o1, Object o2) {
return ((String) o2).length() - ((String) o1).length();
}
}
|