Day1、4段階目完了

This commit is contained in:
m-endo
2026-09-17 13:28:26 +09:00
parent 909322f244
commit 922e9cb829
3 changed files with 34 additions and 0 deletions

24
em-oop/src/Main.java Normal file
View File

@@ -0,0 +1,24 @@
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
//メソッド宣言
EmployeeData employee = new EmployeeData();
//各フィールド代入
employee.idEmployee = "10000";
employee.nmEmployee ="山田龍也";
employee.knEmployee ="ヤマダタツヤ";
employee.mailAddress = "yamada@hoge.jp";
employee.password= "aaa";
employee.idDepartment="10";
//各フィールド出力
System.out.println(employee.idEmployee);
System.out.println(employee.nmEmployee);
System.out.println(employee.knEmployee);
System.out.println(employee.mailAddress);
System.out.println(employee.password);
System.out.println(employee.idDepartment);
}
}