Подскажите, почему не проходит валидацию?
package com.javarush.task.task08.task0828;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
/*
Номер месяца
*/
public class Solution {
public static void main(String[] args) throws IOException {
Map<Integer, String> month = new HashMap<>();
month.put(1, "January");
month.put(2, "February");
month.put(3, "March");
month.put(4, "April");
month.put(5, "May");
month.put(6, "Juny");
month.put(7, "July");
month.put(8, "August");
month.put(9, "September");
month.put(10, "October");
month.put(11, "November");
month.put(12, "December");
BufferedReader reader = new BufferedReader(new InputStreamReader((System.in)));
String string = reader.readLine();
for (Map.Entry<Integer, String> entry : month.entrySet()) {
Integer key = entry.getKey();
String value = entry.getValue();
if (value.equalsIgnoreCase(string)) {
System.out.println(value + " is the " + key + " month");
break;
}
}
}
@Override
public boolean equals(Object object) {
return (this == object);
}
}