Question: how to import csv file to database in java?
Answer: Open CSV file using FileReader object. Create BufferedReader from FileReader. Read file line by line using readLine() method. Split each line on comma to get an array of attributes using String. ...  Create object of Book class from String array using new Book() Add those object into ArrayList using add() method.