From: Jérôme Benoit Date: Thu, 5 Apr 2018 20:42:20 +0000 (+0200) Subject: Small code cleanups. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=143582d5d344baaee70e97f8294bd781be6b924f;p=Project_POO.git Small code cleanups. Signed-off-by: Jérôme Benoit --- diff --git a/exo4/Main.java b/exo4/Main.java index cd7afc5..7c17dd8 100644 --- a/exo4/Main.java +++ b/exo4/Main.java @@ -1,5 +1,4 @@ import java.util.LinkedList; -//import java.lang.reflect.Method; import java.lang.annotation.Annotation; class Main { diff --git a/exo5/Main.java b/exo5/Main.java index 1ec7512..c5b80c4 100644 --- a/exo5/Main.java +++ b/exo5/Main.java @@ -38,9 +38,9 @@ class Main { } System.out.println("SortedMap content after the word \"milieu\":"); - SortedMap stm = tm.tailMap("milieu"); - for (String wordCursor : stm.keySet()) { - System.out.println("Word \"" + wordCursor + "\" occured " + stm.get(wordCursor) + " times"); + SortedMap sm = tm.tailMap("milieu"); + for (String wordCursor : sm.keySet()) { + System.out.println("Word \"" + wordCursor + "\" occured " + sm.get(wordCursor) + " times"); } } }