repositories
/
Project_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
exo4: fix the class annotation to be included inside the bytecode.
[Project_POO.git]
/
exo5
/
StrComparator.java
diff --git a/exo5/StrComparator.java
b/exo5/StrComparator.java
new file mode 100644
(file)
index 0000000..
b797083
--- /dev/null
+++ b/
exo5/StrComparator.java
@@ -0,0
+1,9
@@
+import java.util.Comparator;
+
+class StrComparator implements Comparator<String> {
+
+ public int compare(String str1, String str2) {
+ return str1.compareTo(str2);
+ }
+
+}