Here you can find the source of persistExecutionTimesCsv(String filePath, LinkedList
public static void persistExecutionTimesCsv(String filePath, LinkedList<Map.Entry<String, Double>> executionTimes) throws IOException
//package com.java2s; //License from project: Open Source License import java.io.*; import java.util.*; public class Main { public static void persistExecutionTimesCsv(String filePath, LinkedList<Map.Entry<String, Double>> executionTimes) throws IOException { PrintWriter out = null;//from ww w .j a v a2 s.c om try { out = new PrintWriter(new BufferedWriter(new FileWriter(filePath, false))); for (Map.Entry<String, Double> entry : executionTimes) { out.println(entry.getKey() + ";" + entry.getValue()); } } finally { if (out != null) { out.close(); } } } }