1. Learn
  2. /
  3. Courses
  4. /
  5. Importing Data in Java

Connected

Exercise

Reading CSV files

You've joined DataCorp as a junior data analyst. Your first project involves consolidating the employee database, but the data comes from multiple systems using different CSV formats - some comma-separated, others tab-delimited. Being able to handle varying file formats is essential since real-world data rarely comes in a single standardized format.

The Table, CsvReadOptions, and related Tablesaw classes have been imported for you.

Instructions

100 XP
  • Read in "employees.csv" using default options.
  • Read "employees_tab.csv" using a tab delimiter.
  • Print the structure of both tables.