To Lecture Notes

IT 313 -- Feb 18, 2020

Practice Exercise

  1. Modify the BarChart class in the JFreeChart Example to read exchange rates from the input file exchange-rates.txt and display them in a JFreeChart barchart.
    Ans: Here is the modified BarChart class, which uses the input file exchange-rates.txt. Here is a second version that uses two input files currencies.txt and exchange-rates.txt.  Finally, here is a third version with extracted getExchangeRate method.  This method was obtained by IntelliJ using refactoring (Extract Method).

    Combine this example with the code that obtains the exchange rates form the io.fixer website in Item 2 of the Project 5 Section in the Feb 6 Class Notes.

Interfaces

Iterators

Java Collections

The HashMap Collection

Project 6a