Skip to content

kdevar/interview-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Exercise Instructions

In this exercise, please utilize the provided interfaces to construct a program that will read a CSV file from the resources directory, apply the rules defined below and write a new file back to the resources directory

Steps

Make the changes needed to:

  1. Read data.csv from the root directory
  2. Filter out the line items where the line_item_type is refund
  3. When duplicate line_item_ids are encountered, keep the line item that has the highest cost
  4. Write the filtered content to new CSV file called data-filtered.csv

Provided

There are three interfaces provided. Please use them to construct your program.

  1. Reader
  2. Writer
  3. Processor

Additionally, there is a utility to parse a CSV line. CSVHelper

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages