@@ -0,0 +1,1005 @@
+import weka.core.Instances;%0Aimport weka.core.converters.ArffSaver;%0Aimport weka.core.converters.CSVLoader;%0Aimport weka.classifiers.functions.MultilayerPerceptron;%0Aimport java.io.BufferedReader;%0Aimport java.io.File;%0Aimport java.io.FileReader;%0Aimport java.io.FileWriter;%0A %0Apublic class CsvToArff %7B%0A%0A  public static void main(String%5B%5D args) throws Exception %7B%0A%09  FileReader fr = new FileReader(%22D:fft_test.csv%22);%0A%09  BufferedReader br = new BufferedReader(fr);%0A%09  FileWriter fw =new FileWriter(%22D:test.arff%22);%0A%09  String n1=%22@attribute%22;%0A%09  String n2=%22numeric%22;%0A%09  fw.write(%22@relation tt%22);%0A%09  fw.write(%22%5Cn%22);%0A%09  String temp=br.readLine();%0A%09  String ttt%5B%5D=temp.split(%22,%22);%0A%09  for (int i=0;i%3Cttt.length;i++)%0A%09  %7B%0A%09%09  fw.write(n1);%0A%09%09  fw.write(%22 %22+ttt%5Bi%5D);%0A%09%09  fw.write(%22 %22+n2);%0A%09%09  fw.write(%22%5Cn%22);%0A%09  %7D%0A%09  fw.write(%22@data%22);%0A%09  fw.write(%22%5Cn%22);%0A%09  while (br.ready())%0A%09  %7B%0A%09%09  temp=br.readLine();%0A%09%09  fw.write(%22%7B%22);%0A%09%09  fw.write(temp);%0A%09%09  fw.write(%22%7D%22);%0A%09%09  fw.write(%22%5Cn%22);%0A%09  %7D%0A%09  %0A%09  %0A%09  fw.close();%0A%09  %0A  %7D%0A%7D%0A

Create CsvToArff.java