⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 selectcourse.java

📁 哈工大实验课源代码
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -