Tuesday, February 10, 2015

Java: Chicago Public Salary Analyzer



Visit page and take a look at the data:

https://data.cityofchicago.org/Administration-Finance/Current-Employee-Names-Salaries-and-Position-Title/xzkq-xp2w

Download data as CSV (Commas Separated Values) which is used commonly to import-export spreadsheet type of data.

Create a new IntelliJ IDEA Module:

  • Maven project
  • GroupID: edu.clcillinois.cit137
  • ArtifactId: chi_pub_salary_analyzer
  • Module name chi_pub_salary_analyzer
If you see Notification: "Maven projects need to be imported"
  • Enable Auto-Import

Create Main class







Create package data.reader

Reader



TextFileReader




Create new Package "data.parser"

Create new Interface Parser in which we will outline methods we want to GET our data:


CVSParser




Writer




CSVWriter