The below program work flawlessly in a recently completed program. However, when I did a new program, using the same CSV code, it doesn't output the database fields to a csv file. I placed a System print just below the data
string declaration and do get a partial of the first record --but not the complete record. Not sure what I'm doing different.
In my previous program, I used the comma deliminator by stating the CSVFormat to "CSVFormat format = CSVFormat.RFC4180.withRecordSeparator(",")". In this new program, the "withRecordSeparator" Netbeans deprecates it. Not sure how to resolve this since the format parameter has changed. I use Zulu OpenJDK 17 within Netbeans 17 in a Windows 10 OS.