本帖最后由 小穿钉 于 2015-10-12 08:15 编辑
class StudentsScore{
private static int passPoint=350;
private String studentId;
private String name;
private int score;
public Student sScore(String studentId,String name,int score){
this.student=studentId;
this.name=name;
this.score=score;
}
public int getScore(){
return score;
}
public String getName(){
return name;
}
}
class StudentTest{
public static void main(String[] args){
StudentsScore student1=new StudentsScore("19920201","li",120);
if(student1.score-StudentsScore>=0)
System.out.println("0.0"+student1.name+"pass");
else System.out.println("-.-"+student1.name+"does not pass");
}
} |
-
4.jpg
(86.89 KB, 下载次数: 8)
-
3.jpg
(66.74 KB, 下载次数: 8)
-
1.jpg
(101.52 KB, 下载次数: 7)
-
2.JPG
(144.07 KB, 下载次数: 8)
-
5.jpg
(94.66 KB, 下载次数: 7)
-
6.jpg
(98.6 KB, 下载次数: 9)
组图打开中,请稍候......
|