10/14 開発課題
This commit is contained in:
39
EmployeeData.java
Normal file
39
EmployeeData.java
Normal file
@@ -0,0 +1,39 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user