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