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

Connected

Exercise

Modifying table structure

The meteorological station now needs to update its weather data table to accommodate new temperature forecasts. They want to add forecast temperatures while keeping the actual recorded temperatures for comparison purposes.

The Table, DoubleColumn, and StringColumn classes from Tablesaw have been imported for you.

Instructions

100 XP
  • Rename the "Temperature" column to "ActualTemp".
  • Add a new "ForecastTemp" column to the table.
  • Print the table structure.
  • Print the first three rows.