62,621
社区成员
发帖
与我相关
我的任务
分享
//学生类
class Student implements Serializable
{
String id;
String name;
String departmentId;//学院Id
public void setId(int id1)
{
id = id1;
}
....get和set方法
}
//学生操作类
class studentop
{
public static boolean delStudent(int id)
{
...一堆sql语句
sql = "delete * from student where id ="+id;
..
}
...一堆你需要的方法
}
class students
{
static list <student> = new ArrayList();//用静态的
.....
}