Richie will teach lecture on Wednesday. 

His purpose is to provide you with info on 

  (a) maps 

  (b) reading text files 

  (c) sorting with Comparable

--

 1. BigDecimal a = new Bigdecimal("2"), 
               b = new Bigdecimal("3"), 
               c = new Bigdecimal("4");
    BigDecimal result = a.add(b.multiply(c)); 

 2. 

 7. 4 % 7 

    4 = 0 * 7 + 4

 8. 7 % 4

    7 = 1 * 4 + 3 

 9. -4 % 7 

    -4 = q * 7 + r 

    r is supposed to be less than 4 in absolute value 

    -4 = 0 * 7 - 4

10.  7 % -4 

     7 = q * -4 + r 

    r is supposed to be less than 4 in absolute value 

         0
         1
        -1 * -4 + 3
        -2 * -4 + -1

In math remainders must be positive.

In Java not necessarily.