我每次写一个package aa.io;  在一个单元里,在另一个单元里 用 import aa.io.*;  不可以 就找不到 不知道为什么 代码如
A:
package Myjava.foodvo;       //就是这个东西
import java.io.*;
//值对象,包含据性,setter,getter方法
class foodlist
{
private String InID ;
private String foodname;
private int energy;
private int protein;
private int water;   //生成getter,setter主法
public void setId(String InID)
{
this.InID=InID;
}
public void setfoodname(String foodname)
{
this.foodname=foodname;
}
public void setenergy(int energy)
{
this.energy=energy;
}
public void setprotein(int protein)
{
this.protein=protein;
}
public void setwater(int water)
{
this.water=water;
}
public String getId()
{
return this.InID;
}
public String getfoodname()
{
return this.foodname;
}
public int getenergy()
{
return this.energy;
}
public int getprotein()
{
    return this.protein;
}
public int getwater()
{
return this.water;
}
}B:package Myjava.foodlistDAO;import Myjava.foodvo.* ;//  这个东西好像不行 看看那位
import java.util.* ;//this class implements foodlist table all modify
public interface foodlistDAO
{
//insert data table
public void insert(foodlist foodlist)throws Exception;
//update data  table
public void update(foodlist foolist)throws Exception;
//delate data table
public void delete(String InID)throws Exception;
//use InID  query
public foodlist queryById(String InID)throws Exception;
//use InID  query all
public List queryAll()throws Exception;
//use like query all
public List queryByLike(String LikeStr)throws Exception;
}  代码好多  其实也就一个小知识点!!!!不知道为什么 B:不能编译! 加载那个包的时候