title: Reading the multi line in column data from CSV using java
body: <p>When I tried to read multi line data in column from CSV file using java program then It doesn't provide the work, I used buffered Reader for this</p>
  
  <p>I used buffered Reader for this</p>
  
  <pre><code>private static List&lt;Book&gt; readBooksFromCsv(String fileName) {
          List&lt;Book&gt; books=new ArrayList&lt;&gt;();
          Path filePath=Paths.get(fileName);
          try {
              BufferedReader br=Files.newBufferedReader(filePath,StandardCharsets.US_ASCII);
              String  line=br.readLine();
              while(line!=null)
              {
                  String []attribute=line.split(",");
                  Book book=createBook(attribute);
                  books.add(book);
                  line=br.readLine();
              }
  
          }
          catch(IOException e)
          {
              e.printStackTrace();
          }
  
  
          return books;
      }
  
      private static Book createBook(String[] attribute) {
  
          int transactionId=Integer.parseInt(attribute[0]);
          int caseId=Integer.parseInt(attribute[1]);
          String lastName=attribute[2];
          return new Book(transactionId,caseId,lastName);
  
      }
  </code></pre>
  
  <p>Wants a solution to for the above problem</p>