Java File Save saveIntArray(int[] array, PrintStream out)

Here you can find the source of saveIntArray(int[] array, PrintStream out)

Description

save Int Array

License

Open Source License

Declaration

public static void saveIntArray(int[] array, PrintStream out) 

Method Source Code

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

import java.io.PrintStream;

public class Main {
    public static void saveIntArray(int[] array, PrintStream out) {
        int dim = array.length;
        out.println(dim);/*from w w  w. jav  a  2s . c o  m*/
        for (int i = 0; i < dim; i++) {
            out.print(array[i]);
            if (i != dim - 1) {
                out.print(" ");
            }
        }
        out.println();
    }
}

Related

  1. saveDoubleMatrix(double[][] matrix, PrintStream out)
  2. saveFile(InputStream st, File testFile)
  3. saveFile(String fname, byte[] bytes)
  4. saveFile(String where)
  5. saveInputToOutput(InputStream is, OutputStream os)
  6. SaveIntFile(int[] list, String filename)
  7. saveStreamAsString(InputStream is)
  8. saveStringDoubleMap(Map map, int dim, PrintStream out)
  9. saveToInputStream(ByteArrayInputStream in, OutputStream out)