ich verstehe nicht warum
de/codegym/task/task05/task0531/Solution.java:44: error: missing return statement
}
^
angezeigt wird...
package de.codegym.task.task05.task0531;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Funktionen verbessern
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int aZahl = Integer.parseInt(reader.readLine());
int bZahl = Integer.parseInt(reader.readLine());
int cZahl = Integer.parseInt(reader.readLine());
int dZahl = Integer.parseInt(reader.readLine());
int eZahl = Integer.parseInt(reader.readLine());
int minimum = min(aZahl, bZahl, cZahl, dZahl, eZahl);
System.out.println("Kleinste Zahl = " + minimum);
}
public static int min(int a, int b, int c, int d, int e)
{
if(a < b && a < c && a < d && a < e)
return a;
else if(b < a && b < c && b < d && b < e)
return b;
else if(c < a && c < b && c < d && c < e)
return c;
else if(d < a && d < c && d < b && d < e)
return d;
else if(e < a && e < c && e < d && e < b)
{
return e;
}
}
}