Source of 10.10.java


  1: StockLedger myStocks = new StockLedger();
  2: myStocks.buy(20, 45);                   // Buy  20 shares at $45
  3: myStocks.buy(20, 75);                   // Buy  20 shares at $75
  4: double capGain = myStocks.sell(30, 65); // Sell 30 shares at $65
  5: // Version 4.0