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

Connected

Exercise

Working with column types

You're building a product catalog for a tech training startup. Before creating courses, you need to analyze the product pricing-understanding the price range helps determine which products to prioritize. Working with typed columns like DoubleColumn gives you access to statistical methods that generic columns don't provide.

The Table and DoubleColumn classes have been imported for you.

Instructions

100 XP
  • Read "products.csv" into the products table.
  • Access the "Price" column and store it in prices.
  • Print the mean price.