找不到类文件,请教了!!
package t;class B{
public static void main(String[] args){
new A();
}
}
package t;
public class A{
private String name;
private boolean isStudent;
public A(){
name="no";
isStudent=false;
}
public void setName(String name){
this.name=name;
}
public String getName(){
return name;
}
public void setIsStudent(boolean isStudent){
this.isStudent=isStudent;
}
public boolean getIsStudent(){
return isStudent;
}
}
其中两个类放在两个文件中,且都放在一个目录中,但是翻译类B时却找不到类A,请教了!