solutions1/drumb.scala
changeset 282 ec9773fe1dc0
parent 266 ca48ac1d3c3e
equal deleted inserted replaced
281:87b9e3e2c1a7 282:ec9773fe1dc0
     1 // Part 2 and 3 about a really dumb investment strategy
     1 // Core Part 6 about a really dumb investment strategy
     2 //======================================================
     2 //=====================================================
     3 
     3 
     4 object CW6b { // for purposes of generating a jar
     4 
       
     5 // generate jar with
       
     6 //   > scala -d drumb.jar  drumb.scala
       
     7 
       
     8 
       
     9 object CW6b { 
     5 
    10 
     6 
    11 
     7 //two test portfolios
    12 //two test portfolios
     8 
    13 
     9 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")
    14 val blchip_portfolio = List("GOOG", "AAPL", "MSFT", "IBM", "FB", "AMZN", "BIDU")