public class StringLengthComparator extends Object implements Comparator<String>
Constructor and Description |
---|
StringLengthComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String a,
String b)
Compares two strings according to their lengths.
|
static void |
main(String[] args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals