package com.neusoft.employee;
/**
* Java Bean----实体类
* @author zhuzidexter
*
*/
public class Employee {
private String eid;
private String ename;
private int age;
private double salary;
public String getEid() {
return eid;
}
public void setEid(String eid) {
this.eid = eid;
}
public String getEname() {
return ename;
}
public void setEname(String ename) {
this.ename = ename;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public double getSalary() {
return salary;
}
public void setSalary(double salary) {
this.salary = salary;
}
}
package com.neusoft.employee;
import java.util.Scanner;
import javax.naming.ldap.ManageReferralControl;
/**
* 测试类
*
* @author zhuzidexter
*
*/
public class TestEmployee {
public static void main(String[] args) {
//要求从控制台输入5条员工的信息,每录入一条员工信息,我们就将这条信息保存到数组容器