D
DefconDev
Gast
Hallo, bin kompletter neuanfänger, und verstehe das problem meines codes nicht, laut des Editors ist meine if anweisung keine boolean, also if (a=5).
import java.io.*;
public class Entscheidungsbaeume {
public static void main(String args[])
throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Eingabe der Min. Zahl");
double a;
a = Double.parseDouble(in.readLine());
if(a=5){
Sytem.out.println("sehr gut");
}
else {
System.out.println("sehr schlecht");
}
}
}