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
@@ -0,0 +1,9 @@
+import java.util.Comparator;
+
+class StrComparator implements Comparator<String> {
+
+    public int compare(String str1, String str2) {
+        return str1.compareTo(str2);
+    }
+
+}