Hey, ich verstehe absolut nicht warum er mir in Zeile 19 illegal start of expression anzeigt...
kann mir bitte jemand dazu einen Tipp geben und sagen was mein Fehler dabei ist?
Dankeschön :)
package de.codegym.task.task02.task0216;
/*
Die kleinste aus drei Zahlen
*/
public class Solution {
public static int min(int a, int b, int c) {
//schreib hier deinen Code
if (a <= b && a <= c){
return a;
}else if (b <= a && b <= c){
return b;
}else {
return c;
}
public static void main(String[] args) throws Exception {
System.out.println(min(1, 2, 3));
System.out.println(min(-1, -2, -3));
System.out.println(min(3, 5, 3));
System.out.println(min(5, 5, 10));
}
}