Hallo Forum,
ich verusche folgenden Aufruf auszuführen
wenn ich die Zeile ausführe bekomme ich die Fehlermeldung. WAS mache ich falsch?! DANKE!
Die Klasse GreetingUniverse sieht wie folgt aus. Diese sollte ein Konstruktor vom typ earth aufrufen.
Der Konstruktor sieht wie folgt aus
ich verusche folgenden Aufruf auszuführen
Java:
javac -cp classes com\scjaexam\tutorial\planets\ GreetingsUniverse.java
Java:
GreetingsUniverse.java:6: cannot find symbol
symbol : class Earth
location: class com.scjaexam.tutorial.GreetingsUniverse
Earth e = new Earth();
^
GreetingsUniverse.java:6: cannot find symbol
symbol : class Earth
location: class com.scjaexam.tutorial.GreetingsUniverse
Earth e = new Earth();
^
2 errors
Die Klasse GreetingUniverse sieht wie folgt aus. Diese sollte ein Konstruktor vom typ earth aufrufen.
Java:
package com.scjaexam.tutorial;
public class GreetingsUniverse {
public static void main(String[] args) {
System.out.println("Greetings, Universe!");
Earth e = new Earth();
}
}
Der Konstruktor sieht wie folgt aus
Java:
package com.scjaexam.tutorial.planets;
public class Earth {
public Earth() {
System.out.println("Hello from Earth!");
}
}