10/14 開発課題

This commit is contained in:
2026-10-14 16:37:20 +09:00
parent 79fb30d941
commit 2b4e19fae2
8 changed files with 239 additions and 0 deletions

39
EmployeeData.java Normal file
View 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;
}
}
}