My results are coming out right consistently, but one of the requirements--using min(int a, int b) into min(int a, int b, int c, int d)--is being marked as failed.
What

package com.codegym.task.task02.task0217;
/*
Minimum of four numbers
*/
public class Solution {
public static int min(int a, int b, int c, int d) {
//write code here
int _min = a;
if (b < _min)
_min = b;
if (c < _min)
_min = c;
if (d < _min)
_min = d;
return _min;
}
public static int min(int a, int b) {
//write your code here
int _min = a;
if (b < _min)
_min = b;
return _min;
}
public static void main(String[] args) throws Exception {
System.out.println(min(-20, -10));
System.out.println(min(-20, -10, -30, -40));
System.out.println(min(-20, -10, -30, 40));
System.out.println(min(-40, -10, -30, 40));
}
}

public static int min(int a, int b)method from the body of thepublic static int min(int a, int b, int c, int d)method. In your solution you do not call/use min(int a, int b) method at all. My solution: Method min(int a, int b) returns minimum value of two numbers a and b. There are several nested methods in line 9. So, when the first method returns minimum value of a and b, another one is comparing this result with c, and another one to d...IFstatement like in ordinary sentence: If (a<b) then assignatom, else (in all other cases) assignbtom. Ifawill be equal tob, thebwill be the result, but it doesn't matter because they are equal values.