40 lines
636 B
Java
40 lines
636 B
Java
package misson1014;
|
|
|
|
public class EmployeeData {
|
|
//社員ID
|
|
String idEmployee;
|
|
//社員名
|
|
String nmEmployee;
|
|
//カナ
|
|
String knEmployee;
|
|
//メールアドレス
|
|
String mailAddress;
|
|
//PW
|
|
String password;
|
|
//部署ID
|
|
String idDepartment;
|
|
|
|
|
|
//まとめて表示
|
|
void showInfo() {
|
|
|
|
System.out.println(
|
|
this.idEmployee + "\t"
|
|
+ this.nmEmployee + "\t"
|
|
+ this.knEmployee + "\t"
|
|
+ this.mailAddress + "\t"
|
|
+ this.password + "\t"
|
|
+ this.idDepartment);
|
|
}
|
|
//IDチェック
|
|
boolean isMatchId(String id) {
|
|
|
|
if (this.idEmployee.equals(id)) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
|
|
}
|
|
}
|