Programming interview questions

Looking for good programming/interview questions?

Use the search below to find our solutions for selected questions!

Read CSV – Java

Sharing is caring!

The following code reads a CSV file and converts it to List<Map<String, String>> in Java. Each row is represented by a Map<String, String> entry in the resulting List. Map<String, String> maps column name (header value) to value.