repositories
/
Project_POO.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
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
}