5段階目(EmployeeDataにコンストラクタを作ろう)
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
|
||||
public class Main {
|
||||
|
||||
public static void main(String[] args) {
|
||||
EmployeeData employee = new EmployeeData("10000", "山田龍也", "ヤマダタツヤ",
|
||||
"yamada@hoge.jp", "aaa", "10");
|
||||
employee.showInfo();
|
||||
|
||||
EmployeeData[] employees = new EmployeeData[5];
|
||||
for (int i = 0; i < employees.length; i++) {
|
||||
employees[i] = new EmployeeData();
|
||||
|
||||
Reference in New Issue
Block a user