Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
System.out.println("Word \"" + wordCursor + "\" occured " + sm.get(wordCursor) + " times");
}
- System.out.println("Map content of exaclty duplicated word inferior to the word \"milieu\":");
+ System.out.println("Map content of exactly duplicated word inferior to the word \"milieu\":");
Map<String, Integer> m1 = tm.entrySet().stream()
.filter(map -> map.getKey().compareTo("milieu") < 0 && map.getValue() == 2)
.collect(Collectors.toMap(p -> p.getKey(), p -> p.getValue()));