package auiTest.GA;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.util.ArrayList;

class JavaWriteFile {
	public void WriteFile(ArrayList<Integer> a,ArrayList<Double> b,ArrayList<Double> c){
		try{
			// Create file 
			FileWriter fstream = new FileWriter("out.csv");
			BufferedWriter out = new BufferedWriter(fstream);
			for(int i=0;i<a.size();i++){
				out.write(a.get(i)+","+b.get(i)+","+c.get(i)+"\n");
			}
			
			
			//Close the output stream
			out.close();
			}catch (Exception e){//Catch exception if any
				System.err.println("Error: " + e.getMessage());
			}
	}
}
@@ -1,8 +1,87 @@
+//Copyright (c) 2016 Gumpanat Keardkeawfa%0D%0A//Licensed under the MIT license%0D%0A%0D%0A
 package 
@@ -531,21 +531,16 @@
 %7D%0D%0A%09%09%09%0D%0A
-%09%09%09%0D%0A
 %09%09%09//Clo
@@ -692,8 +692,10 @@
 %7D%0D%0A%09%7D%0D%0A%7D
+%0D%0A

Update JavaWriteFile.java