Small code cleanups.
[Project_POO.git] / exo5 / Main.java
index 1ec751215c7c5bd4710ca47cefe6a69f39c6a297..c5b80c42e573d08078519a99ffb74f5df89fa749 100644 (file)
@@ -38,9 +38,9 @@ class Main {
         }
 
         System.out.println("SortedMap content after the word \"milieu\":");
-        SortedMap<String, Integer> stm = tm.tailMap("milieu");
-        for (String wordCursor : stm.keySet()) {
-            System.out.println("Word \"" + wordCursor + "\" occured " + stm.get(wordCursor) + " times");
+        SortedMap<String, Integer> sm = tm.tailMap("milieu");
+        for (String wordCursor : sm.keySet()) {
+            System.out.println("Word \"" + wordCursor + "\" occured " + sm.get(wordCursor) + " times");
         }
     }
 }