selectcourse.java
来自「哈工大实验课源代码」· Java 代码 · 共 36 行
JAVA
36 行
package shixyan2;
public class SelectCourse {
private int studentId;
private String courseName;
private double score;
public SelectCourse(int studentId, String courseName, double score) {
this.studentId = studentId;
this.courseName = courseName;
this.score = score;
}
public String getCourseName() {
return courseName;
}
public double getScore() {
return score;
}
public void setScore(double score) {
this.score = score;
}
public int getStudentId() {
return studentId;
}
public void print() {
System.out.println("学号:" + getStudentId() + " 课程名:"
+ getCourseName() + " 成绩:" + getScore());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?