Не могу понять
package com.javarush.task.task02.task0217;
/*
Минимум четырех чисел
*/
public class Solution {
public static int min(int a, int b, int c, int d) {
//напишите тут ваш код
int f = min(a, b, c, d);
if (a < b)
f = a;
else f = b;
if (b < c)
f = b;
else f = c;
if (c < d)
f = c;
else f = d;
return f;
}
public static int min(int a, int b) {
//напишите тут ваш код
int f = (a, b);
if (a < b)
f = a;
else f = b;
return f;
}
public static void main(String[] args) throws Exception {
System.out.println(min(-20, -10));
System.out.println(min(-40, -10, -30, 40));
System.out.println(min(-20, -40, -30, 40));
System.out.println(min(-20, -10, -40, 40));
System.out.println(min(-20, -10, -30, -40));
}
}