Hey Oxy's,
hab mal ne Frage. Unzwar sollen wir ein programm, in welchem Fehler sind korrigieren:
class VeryBuggy {
public static Void main(String{} args) {
int zahl1 = 17;
short zahl2
zahl2 = zahl1;
zahl3 = zahl2*zahl1+23;
int zahl1 = zahl3/5;
System.Out.print(Das Ergebnis ist ;
System.out.println(zahl1);
}
Ich bin so weit gekommen:
class VeryBuggy {
public static Void main(String[] args) {
int zahl1 = 17;
int zahl2 = zahl1;
int zahl3 = zahl2*zahl1+23;
zahl1 = zahl3/5;
System.out.println("Das Ergebnis ist :");
System.out.println(zahl1);
}
}
So, wenn ich das jetzt starte, also mit javac test.java dann erhalte ich folgende Fehlermeldung:
test.java:12: missing return statement
}
^
1 error
Ich hab leider keine AHnung was dieses return bedeutet und wie ich das einfügen soll??
VIELEN DAAANK
Lesezeichen