main_solution1/drumb.scala
changeset 400 e48ea8300b2d
parent 396 3ffe978a5664
child 402 de59aa20a1dc
equal deleted inserted replaced
399:b17a98b0c52f 400:e48ea8300b2d
     1 // Core Part 6 about a really dumb investment strategy
     1 // Main Part 1 about a really dumb investment strategy
     2 //=====================================================
     2 //=====================================================
     3 
     3 
     4 
     4 
     5 // generate jar with
     5 // generate jar with
     6 //   > scala -d drumb.jar  drumb.scala
     6 //   > scala -d drumb.jar  drumb.scala
     7 
     7 
     8 
     8 
     9 object CW6b { 
     9 object M1 { 
    10 
    10 
    11 
    11 
    12 //two test portfolios
    12 //two test portfolios
    13 
    13 
    14 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")
    14 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")