I have to load data from different CSV files. At the moment, I have this. It works well, but basically I have to load the data from different files into different arrays (one is Books, the other one is customers account). I don't want to repeat the code. I want to make this code (LoadingData) reusable for every CSV file I have to upload. Any ideas on how I can work this out. Here is how my class "Loading" looks so far.

```java
public class LoadingData {

    ArrayList<Book> books = new ArrayList<>();

    //ArrayList<Reader> readers = new ArrayList<>();

    public void Loading(String fileName){
        try (BufferedReader br = new BufferedReader(new FileReader(fileName))){

            String currentLine;
            while ((currentLine = br.readLine()) != null){

                // separating the data by the comma
                String[] detailed = currentLine.split(",");

                // skiping the first line since it has only titles and no the data I want to store
                if(detailed[0].equals("id"))
                    continue;

                //Storing data in variables

                String id = detailed[0];
                String title = detailed[3];
                String firstName = detailed[1];
                String lastName = detailed [2];
                String genre = detailed [4];  

                //adding the data to the arraylist

                books.add(new Book(id, title, firstName, lastName, genre));

            }

        } catch (IOException ioe) {

            ioe.printStackTrace();

    }}
}

```