Database 导不进来?
package steudent;
import java.util.*;
import java.sql.*;
import javax.swing.*;
/**
* 有关学生信息数据库操作的类
*/
public class StuBean {
String sql;
ResultSet rs = null;
String sNum;
String sName;
String sSex;
String sBirth;
String sHome;
String sEthnic;
String sYear;
String sMajor;
String sCollege;
String colName;//列名
String colValue;//列值
String colValue2;//列值
int stuId;//学生的新学号
/**
* 添加学生信息
*/
public void stuAdd(String name, String sex, String birth, String home, String ethnic, String year, String major, String college){
Database DB = new Database();
this.sName = name;
this.sSex = sex;
this.sBirth = birth;
this.sHome = home;
this.sEthnic = ethnic;
this.sYear = year;
this.sMajor = major;
this.sCollege = college;
if(sName == null||sName.equals( " ")){
JOptionPane.showMessageDialog(null, "请输入学生姓名 ", "错误 ", JOptionPane.ERROR_MESSAGE);