this is my runtime error:
java.lang.NoSuc hMethodError: Location: method <init>()V not found
at driver.main(dri ver.java:5)
this is my code for my first .java file:
this is my code for my second .java file:
other info:
I am using BlueJ on WindowsXP.
The java files are in the same folder with all the other files that are created with BlueJ.
java.lang.NoSuc hMethodError: Location: method <init>()V not found
at driver.main(dri ver.java:5)
this is my code for my first .java file:
Code:
public class driver { public static void main(String args[]) { Location test = new Location(); System.out.println(test.getX()); } }
Code:
public class Location { private int x; public Location() { x = 0; } public int getX() { return x; } }
I am using BlueJ on WindowsXP.
The java files are in the same folder with all the other files that are created with BlueJ.
Comment