Java File Attribute persistExecutionTimesCsv(String filePath, LinkedList> executionTimes)

Here you can find the source of persistExecutionTimesCsv(String filePath, LinkedList> executionTimes)

Description

persist Execution Times Csv

License

Open Source License

Declaration

public static void persistExecutionTimesCsv(String filePath,
            LinkedList<Map.Entry<String, Double>> executionTimes) throws IOException 

Method Source Code


//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();
            }
        }
    }
}

Related

  1. makeExecutable(File file)
  2. makeExecutable(File target)
  3. makeExecutable(String path)
  4. parallel(ExecutorService executor, Collection> tasks)
  5. patchInfoPList(final File infoPList, final String executable)
  6. setExecutable(File f, final String pattern)
  7. setExecutable(File file)
  8. setExecutable(File file, boolean executable)
  9. setExecutable(String filesList)