The (a,b,c,d) method is supposed to run the same as the (a,b) method, it claims that it isn't, how do I fix this?

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) {
int min;
min = a;
if (a<b && a<c && a<d)
min = a;
if (a>b && b<c && b<d)
min = b;
if (c<a && c<b && c<d)
min = c;
if (d<a && d<b && d<c)
min = d;
return min;
}
public static int min(int a, int b) {
int min;
min = a;
if (a>b)
min = b;
if (a<b)
min = a;
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));
}
}