course.java
来自「在线判作业系统」· Java 代码 · 共 57 行
JAVA
57 行
/*
* course.java
*
* Created on 2007年6月23日, 上午10:53
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
package teachmanage.Entities;
import java.sql.ResultSet;
import java.sql.SQLException;
/**
*
* @author CASE
*/
public class course
{
private String Cno="";
private String Cname="";
private String Credit="";
/** Creates a new instance of course */
public void Set_Instance(ResultSet rs)
{
try
{
this.Cno=rs.getString("Cno");
this.Cname=rs.getString("Cname");
this.Credit=rs.getString("Credit");
}
catch(SQLException e)
{
e.printStackTrace();
}
}
public String GetCno()
{
return Cno;
}
public String GetCname()
{
return Cname;
}
public String GetCredit()
{
return Credit;
}
public course()
{
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?