Here you can find the source of print(int[] a)
public static void print(int[] a)
//package com.java2s; //License from project: Apache License import java.util.StringJoiner; public class Main { public static void print(int[] a) { StringJoiner sj = new StringJoiner(",", "[", "]"); for (int i = 0; i < a.length; i++) { sj.add(String.valueOf(a[i])); }/* ww w .j av a 2s .com*/ System.out.println(sj.toString()); } }