tried both possible methods results are correct but still 3 and 5 condition not met please help

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