Помогите разобраться! Не проходит ни по одному пункту, хотя вывод верный о_О
package com.javarush.task.task40.task4009;
import java.time.LocalDate;
import java.time.Year;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
import java.time.format.TextStyle;
import java.util.Locale;
public class Solution {
public static void main(String[] args) {
System.out.println(weekDayOfBirthday("1.2.2015", "2015"));
}
public static String weekDayOfBirthday(String birthday, String year) {
//напишите тут ваш код
try {
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("d.M.yyyy");
LocalDate bdDate = LocalDate.parse(birthday, dateTimeFormatter);
LocalDate newBdDate = bdDate.withYear(Year.parse(year).getValue());
return newBdDate.getDayOfWeek().getDisplayName(TextStyle.FULL, Locale.ITALIAN);
} catch (DateTimeParseException e) {
System.out.println("Error! Can't parse the date");
}
return null;
}
}