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

Connected

Exercise

Department summary statistics

For the executive summary, HR requires aggregate statistics including total payroll, average salary, and the highest salary. You'll need to combine all salary values into single summary figures.

The Tablesaw library has been imported, and employees.csv contains the salary data.

Instructions

100 XP
  • Aggregate all salaries to calculate the total payroll.
  • Compute the average salary using the total and row count.
  • Find the highest salary in the dataset.