wenn ich mein Programm compiliere,
kommt ab dieser zeile eine Fehlermeldung:
Auto.java:26: class, interface, or enum expected
public static void main(String argv[] )
^
hier das komplette Programm
public class Auto
{
// Objektattribute
double tachoStand;
// Objektmethoden
public void fahren(double distanz)
{
tachoStand = tachoStand + distanz;
}
public double leseTachoStand()
{
return tachoStand;
}
}
// ende: class Auto
//Methode main zum Testen
public static void main(String argv[] )
{
Auto meinPKW = new Auto();
meinPkw.fahren(100);
double = meinPKW.leseTachoStand();
Auto bmw = new Auto();
meinPKW.ausgeben();
Auto zweiCV = new Auto();
meinPKW.fahren(23);
}