Here you can find the source of appendArray(StringBuilder sb, int[] arr)
public static StringBuilder appendArray(StringBuilder sb, int[] arr)
//package com.java2s; //License from project: Open Source License public class Main { public static StringBuilder appendArray(StringBuilder sb, int[] arr) { for (int i : arr) { sb.append(i);/*from w ww. j a v a 2 s . c o m*/ sb.append(System.getProperty("line.separator")); } return sb; } }