Uh... whats wrong?
package com.codegym.task.task05.task0531;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Improving functionality
*/
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 minimum = min(a, b);
System.out.println("Minimum = " + minimum);
}
public static int min(int a, int b) {
return a < b ? a : b;
}
public static int min(int a, int b, int c, int d, int e) {
int f=Integer.MAX_VALUE;
int[] g= new int[]{a,b,c,d,e};
for (int i=0;i<5;i++){
if(f>g[i]){
f=g[i];
}
}
return f;
}
}