11 lines
190 B
Java
11 lines
190 B
Java
|
import java.util.Comparator;
|
||
|
|
||
|
public class Sorter implements Comparator<String> {
|
||
|
|
||
|
@Override
|
||
|
public int compare(String o1, String o2) {
|
||
|
return o1.compareTo(o2);
|
||
|
}
|
||
|
|
||
|
}
|