@@ -0,0 +1,617 @@
+package chapter3;%0A%0A/**%0A * Created by michael.song on 8/18/2016.%0A */%0Apublic class BankAccount %7B%0A%09private double amount;%0A%0A%09/**%0A%09 *%0A%09 * @param amount%0A%09 */%0A%09public void BankAccount(double amount)%7B%0A%09%09this.amount = amount;%0A%09%7D%0A%09public BankAccount()%7B%0A%09%09this.amount = 100;%0A%09%7D%0A%0A%09/**%0A%09 * Gets the current balance of the bank account%0A%09 * @return the current balance%0A%09 */%0A%09public double getAmount()%7B%0A%09%09return this.amount;%0A%09%7D%0A%09public static void main(String args%5B%5D)%7B%0A%09%09BankAccount account = new BankAccount();%0A%09%09System.out.println(account.getAmount());%0A%09%09account.BankAccount(123.5);%0A%09%09System.out.println(account.getAmount());%0A%09%7D%0A%7D%0A

build a constructor with a private instance field