ich bekomme einen Fehler mit folgender Meldung:
Zuletzt gespeichert: 09:09:14
Ausgabe-Leiste Einklappen
./ExampleClass.java:13: error: class, interface, or enum expected
}
^
1 error
make: *** [run] Error 1
===========================================================
ich schaue die ganze Zeit und finde es einfach nicht was falsch sein könnte in dieser Zeile...
Zuletzt gespeichert: 09:09:14
Ausgabe-Leiste Einklappen
./ExampleClass.java:13: error: class, interface, or enum expected
}
^
1 error
make: *** [run] Error 1
===========================================================
ich schaue die ganze Zeit und finde es einfach nicht was falsch sein könnte in dieser Zeile...
Code:
public class ProgrammingExampleWeek1 {
public static void main(final String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Welcome to the Model Company!");
System.out.println("pls hand over the name...");
ExampleClass robert = new ExampleClass();
robert.name = br.readLine();
System.out.println("Thank you!!");
System.out.println("Pls hand over the first name!");
robert.firstName = br.readLine();
System.out.println("Thank you!!");
System.out.println("pls hand over the road....");
robert.road = br.readLine();
System.out.println("Thank you!");
System.out.println("Pls hand over the redience and the locus");
robert.redience= br.readLine();
System.out.println("Thank you!");
System.out.println("Pls hand over the postcode... ");
robert.postCode= br.readLine();
System.out.println("Thank you ");
System.out.println("have you got a coustomorID?");
boolean selection = br.markSupported();
if(selection==true){
System.out.println("Pls hand over the ID");
String customerID= br.readLine();
if(customerID.equals(robert.customerID)){
System.out.println("Thank you!! It is done!");
}
}
else{
System.err.println("This not invalid");
}
}
}