Hallo Community,ich lerne grade Java eclipse und wollte einen "mini Taschenrechner" machen... DOch es tritt andauernd folgender Fehler auf : Exception in thread "main" java.lang.Error: Unresolved compilation problem:
at Cl.main(Cl.java:5)
Hier ist der Text den ich geschrieben Habe : import java.util.Scanner;
public class Cl {
public static void main(String args[]) {
Scanner s = new Scanner (System.in);
int x,y,z;
System.out.println("Bitte 2 Zahlen eingeben");
x = s.nextInt();
y = s.nextInt();
z = x+y;
System.out.println("Die Summe aus " + x +" und " + y + "ist" + z);
}
}
}
Hoffe einer kann mir helfen.
MfG PaNiiC
at Cl.main(Cl.java:5)
Hier ist der Text den ich geschrieben Habe : import java.util.Scanner;
public class Cl {
public static void main(String args[]) {
Scanner s = new Scanner (System.in);
int x,y,z;
System.out.println("Bitte 2 Zahlen eingeben");
x = s.nextInt();
y = s.nextInt();
z = x+y;
System.out.println("Die Summe aus " + x +" und " + y + "ist" + z);
}
}
}
Hoffe einer kann mir helfen.
MfG PaNiiC