diff options
Diffstat (limited to 'src/test/java/walter2/MyComp.oj')
-rw-r--r-- | src/test/java/walter2/MyComp.oj | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/java/walter2/MyComp.oj b/src/test/java/walter2/MyComp.oj new file mode 100644 index 0000000..5afc869 --- /dev/null +++ b/src/test/java/walter2/MyComp.oj @@ -0,0 +1,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(); + } +} |