+ 1
How to create a package
Commands & examples plzz
1 Odpowiedź
+ 1
at the begin of your class file you write your package name:
package my.example.package
//imports
public class MyClass {}
other file:
package my.example.package.sub.package
import my.example.package.MyClass;
public class User{
private MyClass mc;
}
in most ides eg. eclipse you arrange your packages in folders but this is done automatically if you ho to new package.