I'm trying to work with Weka in Java.

My old code relies heavily on the FastVector data type, which has now been deprecated. Eventually I'll need to replace it with a typed ArrayList, but at the moment I just need to find a way to parse the FastVector data type to a .csv file.

I made a lame attempt which creates a csv file, but does not properly parse the data:

 try(  PrintWriter out = new PrintWriter( "results.csv" )  ){
I tried a few other things to no avail. For instance I found weka.core.converters.CSVSaver but it only works on Instances objects and I can't find a viable way to convert a FastVector to Instances.