简单的java员工信息管理系统 10
java初学者妹纸一枚,有哪位热心网友能帮我做一个很简单的员工信息管理系统,有简单的界面和增删改查功能就行了,要用到数据库,尽量是sqlsever或者mysq,这是我的作...
java初学者妹纸一枚,有哪位热心网友能帮我做一个很简单的员工信息管理系统,有简单的界面和增删改查功能就行了,要用到数据库,尽量是sql sever或者mysq,这是我的作业但是我还不会做。非常非常感谢!虽然我也不知道该用什么感谢,但是真心的很感谢,如果你有什么我能帮忙的我也会尽力的,谢谢!有愿意帮忙的加我的企鹅号,贰贰零陆贰久捌肆久俉!
展开
2个回答
展开全部
这个应该不难完成
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2016-05-19
展开全部
package com.my.test;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import com.my.bean.Student;
import com.my.bean.Worker;
public class Test {
public static void main(String[] args) {
Student s1=new Student();
Worker w1=new Worker();
Collection c=new ArrayList();
s1.setStuAge("90");
s1.setStuName("李丽");
s1.setStuNo("1401");
w1.setNo("1234");
w1.setSex("男");
w1.setWage("3000");
c.add(w1);
Iterator it=c.iterator();
while(it.hasNext()){
String s=(String)it.next();
System.out.println(s);
}
}
}
package com.my.bean;
public class Worker {
private String wage;
private String no;
private String sex;
public String getWage() {
return wage;
}
public void setWage(String wage) {
this.wage = wage;
}
public String getNo() {
return no;
}
public void setNo(String no) {
this.no = no;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public Worker(String wage, String no, String sex) {
super();
this.wage = wage;
this.no = no;
this.sex = sex;
}
public Worker() {
super();
}
}
package com.my.bean;
public class Student {
private String stuName;
private String stuNo;
private String stuAge;
public String getStuName() {
return stuName;
}
public void setStuName(String stuName) {
this.stuName = stuName;
}
public String getStuNo() {
return stuNo;
}
public void setStuNo(String stuNo) {
this.stuNo = stuNo;
}
public String getStuAge() {
return stuAge;
}
public void setStuAge(String stuAge) {
this.stuAge = stuAge;
}
public Student(String stuName, String stuNo, String stuAge) {
super();
this.stuName = stuName;
this.stuNo = stuNo;
this.stuAge = stuAge;
}
public Student() {
super();
}
}
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import com.my.bean.Student;
import com.my.bean.Worker;
public class Test {
public static void main(String[] args) {
Student s1=new Student();
Worker w1=new Worker();
Collection c=new ArrayList();
s1.setStuAge("90");
s1.setStuName("李丽");
s1.setStuNo("1401");
w1.setNo("1234");
w1.setSex("男");
w1.setWage("3000");
c.add(w1);
Iterator it=c.iterator();
while(it.hasNext()){
String s=(String)it.next();
System.out.println(s);
}
}
}
package com.my.bean;
public class Worker {
private String wage;
private String no;
private String sex;
public String getWage() {
return wage;
}
public void setWage(String wage) {
this.wage = wage;
}
public String getNo() {
return no;
}
public void setNo(String no) {
this.no = no;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public Worker(String wage, String no, String sex) {
super();
this.wage = wage;
this.no = no;
this.sex = sex;
}
public Worker() {
super();
}
}
package com.my.bean;
public class Student {
private String stuName;
private String stuNo;
private String stuAge;
public String getStuName() {
return stuName;
}
public void setStuName(String stuName) {
this.stuName = stuName;
}
public String getStuNo() {
return stuNo;
}
public void setStuNo(String stuNo) {
this.stuNo = stuNo;
}
public String getStuAge() {
return stuAge;
}
public void setStuAge(String stuAge) {
this.stuAge = stuAge;
}
public Student(String stuName, String stuNo, String stuAge) {
super();
this.stuName = stuName;
this.stuNo = stuNo;
this.stuAge = stuAge;
}
public Student() {
super();
}
}
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询