Here you can find the source of saveIntArray(int[] array, PrintStream out)
public static void saveIntArray(int[] array, PrintStream out)
//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(); } }