找不到标识符
程序代码:
class student1{ private String name; private String sexy; private String duty; private double score; private int id; public void set(String name , String sexy ,int id ,double score ,String duty){ this.name = name; this.sexy = sexy; this.id =id; this.score = score; this.duty = duty; } public String getName(){ return name; } public String getSexy(){ return sexy; } public int getId(){ return id; } public double getScore(){ return score; } public String getDuty(){ return duty; } public void info(){ System.out.println("学生姓名:"+name+"性别:"+sexy+"职务"+duty+ id); } public void print(){ System.out.println(score); } } public class student{ public static void main(String arges[]){ student st1 = new student(); student st2 = new student(); student st3 = new student(); st1.info("张三","男","班长","1"); st2.info("李四","男","学生","2"); st3.info("娜娜","女","学生","3"); st1.print("90.0"); st2.print("85.2"); st3.print("10"); } } 红色的地方说找不到标识符