From 143582d5d344baaee70e97f8294bd781be6b924f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 5 Apr 2018 22:42:20 +0200 Subject: [PATCH] Small code cleanups. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- exo4/Main.java | 1 - exo5/Main.java | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) 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"); } } } -- 2.34.1