пробовал eqils,contains,все выводит по шаблону,но что то не так
package com.javarush.task.task08.task0828;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
Map<String,Integer>map = new HashMap<>();
map.put("January",1);
map.put("February",2);
map.put("March",3);
map.put("April",4);
map.put("May",5);
map.put("Jun",6);
map.put("July",7);
map.put("August",8);
map.put("September",9);
map.put("October",10);
map.put("November",11);
map.put("December",12);
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
for (Map.Entry <String,Integer>pair: map.entrySet()){
if (s.contains(pair.getKey())){
String key = pair.getKey();
Integer value = pair.getValue();
System.out.println(key + " is the " + value + " month.");
}
}
}
}