Klasse Java importieren
//Demo.java
package pack;
public class Demo {
public void msg() {
System.out.println("Hello");
}
}
//Test.java
package mypack;
import pack.Demo;
class Test {
public static void main(String args[]) {
Demo obj = new Demo();
obj.msg();
}
}
Undefined