Не проходит валидацию.
Прога работает, выдает min во всех случаях, но проверка ругается.
Рекомендация от ментора "Убедись, что в классе есть требуемый метод min."
Что не так? Подскажите, плиз
package com.javarush.task.task05.task0531;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Math;
/*
Совершенствуем функциональность
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int d = Integer.parseInt(reader.readLine());
int e = Integer.parseInt(reader.readLine());
int minimum = (int) min(a, b, c, d, e);
System.out.println("Minimum = " + minimum);
}
public static double min(int a, int b, int c, int d, int e) {
double min1 = Math.min(d, e);
double min2 = Math.min((Math.min(a, b)), c);
double min3 = Math.min(min1, min2);
return min3;
}
}