I have
public class TestApp { // TestApp.java
public static void main(String[] args) throws Exception {
TestClass x = new TestClass(); // compiler error
}
}
and
public class TestClass { // TestClass.java
public TestClass() {
}
}
TestClass was created by right clicking the project and clicking Add Class.
I’m using NetBeans
classes are known by their name, their full name !
com.myapplication.mymodule.Myclass
you can use the short part provided you :
from your sample, before using import, you can to use full name :