Need universal method to read csv files
问题 I am working on spring web based application in which I facilitate the user to upload the csv files and all the content of csv file will be stored in my MySQL database. I ma using OpenCsv for reading the CSV files, I wrote a method, which I want to be universal, because right now It only written for my Model Employee , I want to be use it as Utility class. Here it is public static List<Employee> parseCSVWithHeader() throws IOException { CSVReader reader = new CSVReader(new FileReader("emps1