Skip to content

Instantly share code, notes, and snippets.

package com.example;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
public static void readCsv(String filePath) {
BufferedReader reader = null;
try {
List<User> users = new ArrayList<User>();
String line = "";
reader = new BufferedReader(new FileReader(filePath));
reader.readLine();
while((line = reader.readLine()) != null) {