heijn
This commit is contained in:
@@ -7,7 +7,6 @@ public class EmployeeData {
|
||||
private String password;
|
||||
private String idDepartment;
|
||||
|
||||
|
||||
public String getIdEmployee() {
|
||||
return idEmployee;
|
||||
}
|
||||
@@ -66,8 +65,8 @@ public class EmployeeData {
|
||||
public void setIdDepartment(String idDepartment) {
|
||||
this.idDepartment = idDepartment;
|
||||
}
|
||||
private static int empCount = 0;
|
||||
|
||||
private static int empCount = 0;
|
||||
|
||||
public void showInfo() {
|
||||
System.out.println(this.idEmployee + "\t" + this.nmEmployee + this.knEmployee + this.mailAddress + this.password
|
||||
@@ -79,11 +78,14 @@ public class EmployeeData {
|
||||
// System.out.println("パスワード: " + this.getPassword());
|
||||
// System.out.println("部署ID: " + this.getIdDepartment());
|
||||
}
|
||||
|
||||
public EmployeeData() {
|
||||
empCount++;
|
||||
|
||||
}
|
||||
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password, String idDepartment) {
|
||||
|
||||
public EmployeeData(String idEmployee, String nmEmployee, String knEmployee, String mailAddress, String password,
|
||||
String idDepartment) {
|
||||
this.setIdEmployee(idEmployee);
|
||||
this.setNmEmployee(nmEmployee);
|
||||
this.setKnEmployee(knEmployee);
|
||||
@@ -93,6 +95,7 @@ public class EmployeeData {
|
||||
empCount++;
|
||||
|
||||
}
|
||||
|
||||
public static int getEmpCount() {
|
||||
|
||||
return empCount;
|
||||
|
||||
@@ -89,8 +89,6 @@ public class Main {
|
||||
employee4.showInfo();
|
||||
employee5.showInfo();
|
||||
|
||||
|
||||
|
||||
//stept 7
|
||||
//System.out.println("10002 を検索します");
|
||||
// System.out.println(employees[2].isMatchId("10002"));
|
||||
@@ -142,11 +140,8 @@ public class Main {
|
||||
employee1.setIdEmployee(" "); // Space သီးသန့်
|
||||
employee1.setNmEmployee(null); // null တန်ဖိုး
|
||||
|
||||
|
||||
}
|
||||
|
||||
//scan.close();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user