Hallo,
sobald ich in Eclipse dieses Programm ausführen will kommt die Fehlermeldung aus dem Titel,
obwohl ich doch eine Main-Methode habe... Weiß jemand wo das Problem liegt? Bin sehr neu auf dem Gebiet Java. Danke im Voraus. Tobi
sobald ich in Eclipse dieses Programm ausführen will kommt die Fehlermeldung aus dem Titel,
obwohl ich doch eine Main-Methode habe... Weiß jemand wo das Problem liegt? Bin sehr neu auf dem Gebiet Java. Danke im Voraus. Tobi
Java:
package java.lang;
public class MyVector3D {
int x;
int y;
int z;
MyVector3D(){
x=0;
y=0;
z=0;
}
MyVector3D(int a, int b, int c){
x = a;
y = b;
z = c;
}
public void main(String [] args) {
MyVector3D Vektor1 = new MyVector3D(75,16,8);
System.out.println(Vektor1);
}}