Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. entries = new CsvToBeanBuilder(new FileReader(pathToFile))
  2. .withSeparator(';')
  3. .withType(Bean.class)
  4. .build().parse();
  5.  
  6. H1;H2;H3
  7. a;b;c
  8. d;e;f
  9. g;h;i
  10. EoF
  11.  
  12. java.lang.RuntimeException: com.opencsv.exceptions.CsvRequiredFieldEmptyException: Number of data fields does not match number of headers.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement