Skip to content

Instantly share code, notes, and snippets.

@j5ik2o
Last active March 11, 2017 18:20
Show Gist options
  • Save j5ik2o/39f87640ce952f4beefec6ec918f57a1 to your computer and use it in GitHub Desktop.
Save j5ik2o/39f87640ce952f4beefec6ec918f57a1 to your computer and use it in GitHub Desktop.
class BankAccount {
public void setName(String name) {
this.name = name;
}
public void setCustomerId(long customerId) {
this.customerId = customerId
}
public void setRegisterDate(Date registerDate) {
this.registerDate = registerDate;
}
public void setAmount(long amount) {
this.amount = amount;
}
// コンストラクタその他は省略
}
BankAccount bankAccount = new BankAccount();
bankAccount.setName("会社用口座");
bankAccount.setCustomerId(userId);
bankAccount.setRegisterDate(now);
bankAccount.setAmount(100000L);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment