Java FileWriter Write saveColumn(int[] density, String filename)

Here you can find the source of saveColumn(int[] density, String filename)

Description

save Column

License

Open Source License

Declaration

public static void saveColumn(int[] density, String filename) throws IOException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

public class Main {
    public static void saveColumn(int[] density, String filename) throws IOException {
        BufferedWriter bw = new BufferedWriter(new FileWriter(new File(filename)));
        for (int n : density) {
            bw.write(Integer.valueOf(n).toString() + "\n");
        }/* w  w w.ja  va  2  s . c  om*/
        bw.close();
    }
}

Related

  1. saveAllToFile(String filename, String... strings)
  2. saveArrayNames(int[] array, String[] names, String fname)
  3. saveAuthFile(String fileName, String raw)
  4. saveBufferInFile(String buffer, File filename)
  5. saveCCS(Map contributionScore, String diseaseState, String file)
  6. saveConfig(File conf, Map data)
  7. saveContent(String context, String filename)
  8. saveData(Map> data, File file)
  9. saveData(Map> data, String file)