exo5: add a SortedMap from the TreeMap.
[Project_POO.git] / exo5 / StrComparator.java
1 import java.util.Comparator;
2
3 class StrComparator implements Comparator<String> {
4
5 public int compare(String str1, String str2) {
6 return str1.compareTo(str2);
7 }
8
9 }