源程序如下:
public class  Stu1  implements  Student_info    //实现学生情况接口
{
    String name;          
    int birth_year;                             //类自己的成员变量
    public Stu1(String n1,int y)
    {
        name = n1;
        birth_year = y;
    }
    public int age()                            //实现接口的方法
    {
        return year - birth_year;
    }
    public void  output()                       //实现接口的方法
    {
        System.out.println(this.name +"  "+ this.age()+"岁");
    }
    public static void main (String args[])
    {
        Stu1 s1 = new Stu1("李明",1980);
        s1.output();
    }
}
-------------------------------------------------------------------------------
我用的是 eclipse,出现错误提示:
Student_info can not be resolved to a type
year cannot be resolved原本程序的期望运行结果是:李明  22岁
不知道是出了什么问题,有大人可以解答一下么?分不多,不成敬意....