Here you can find the source of printArray(int[] array)
public static void printArray(int[] array)
//package com.java2s; //License from project: Apache License public class Main { public static void printArray(int[] array) { System.out.print("{"); for (int i = 0; i < array.length; i++) { System.out.print(array[i]); if (i < array.length - 1) { System.out.print(", "); }/* w ww. j av a2 s. com*/ } System.out.println("}"); } }