1. import是干什么的
导入不同的包下面的类,告诉java类是在哪个包目录下面
2. 实际的例子
例子的目录结构
lydia@lydia:~/sgy/java_learn/package_import_learn$ tree -A
.
├── Learn.java
├── lisi
│ └── Learn.java
└── zhangsan
└── Learn.java
2 directories, 3 files
zhangsan/Learn.java
package zhangsan;
public class Learn {
public static void zhangsan_print () {
System.out.println("zhangsan");
}
};
lisi/Learn.java