1日目_段階4

This commit is contained in:
2026-09-18 12:45:55 +09:00
parent 1f57c5b7e0
commit 28b8e508f3
3 changed files with 31 additions and 19 deletions

View File

@@ -9,6 +9,6 @@ public class Day3Check1 {
// Rectangle rectangle = new Rectangle(2);
// rectangle.area();
employee.showinfo();
}
}

View File

@@ -1,20 +1,22 @@
public class EmployeeData {
public static void main(String args[]) {
// public static void main(String args[]) {
String idEmployee ;
String nmEmployee ;
String knEmployee ;
String mailAddress ;
String password ;
String idDepartment ;
}
// public EmployeeData() {
// this.idEmployee = "";
// public String Employee(String idEmployee) {
// this.idEmployee= idEmployee;
// }
public void showinfo() {
System.out.println();
// this.idEmployee = idEmployee;
System.out.println(this.idEmployee + "\t" + this.nmEmployee+ "\t" + this.knEmployee + "\t"+ this.mailAddress+ "\t" + this.password + "\t"+ this.idDepartment );
}

View File

@@ -9,13 +9,23 @@ public class Main {
String password = "aaa";
String idDepartment = "10";
employee.idEmployee = "1000";
employee.nmEmployee = "山田龍也";
employee.knEmployee = "ヤマダタツヤ";
employee.mailAddress ="yamada@hoge.jp";
employee.password = "aaa";
employee.idDepartment ="10";
employee.showinfo();
// System.out.println(employee);
System.out.println(idEmployee);
System.out.println(nmEmployee);
System.out.println(knEmployee);
System.out.println(mailAddress);
System.out.println(password);
System.out.println(idDepartment);
// System.out.println(idEmployee);
// System.out.println(nmEmployee);
// System.out.println(knEmployee);
// System.out.println(mailAddress);
// System.out.println(password);
// System.out.println(idDepartment);
}