Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How To Save ArrayList of Object to CSV/XLS file

Tom Hat
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,

I'm a young software-developer and really at the begimming of Java. Nevertheless I've programmed a tool, which shows me via a table that contains an arraylist all the files in a specific directory. At the beginning the default directory C:\\ is set and after running the tool you'll see the table with all files in the directory.

I want to export the table to a CSV/XLS file, but I'm struggling weeks with the problem. Can you help me to find a right solution? I've seen some examples with the POI API, but I don't know how I could implement it in my programm ... Thank you in advance!

Here's the PDFCheckTool" class:

Here's the "FileFrame" class:

[Thumbnail for Unbenannt.PNG]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic