5段階目終わりました
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
|
||||
public class EmployeeData {
|
||||
String idEmployee;
|
||||
String nmEmploee;
|
||||
String nmEmployee;
|
||||
String knEmployee;
|
||||
String mailAddress;
|
||||
String password;
|
||||
String idDepartment;
|
||||
|
||||
public void showInfo() {
|
||||
System.out.println(this.idEmployee + "\t" + this.nmEmployee + "\t" + this.knEmployee + "\t" + this.mailAddress + "\t" + this.password + "\t" + this.idDepartment);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -3,17 +3,18 @@ public class Main {
|
||||
public static void main(String[] args) {
|
||||
EmployeeData employee = new EmployeeData();
|
||||
employee.idEmployee = "10000";
|
||||
employee.nmEmploee = "山田龍也";
|
||||
employee.nmEmployee = "山田龍也";
|
||||
employee.knEmployee = "ヤマダタツヤ";
|
||||
employee.mailAddress = "yamada@hoge.jp";
|
||||
employee.password = "aaa";
|
||||
employee.idDepartment = "10";
|
||||
System.out.println(employee.idEmployee);
|
||||
System.out.println(employee.nmEmploee);
|
||||
System.out.println(employee.knEmployee);
|
||||
System.out.println(employee.mailAddress);
|
||||
System.out.println(employee.password);
|
||||
System.out.println(employee.idDepartment);
|
||||
// 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);
|
||||
employee.showInfo();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user