Java tutorial
//package com.java2s; public class Main { public static String i(int[] iArr) { StringBuilder stringBuilder = new StringBuilder(32); stringBuilder.append('('); for (int append : iArr) { stringBuilder.append(append).append(','); } stringBuilder.setCharAt(stringBuilder.length() - 1, ')'); return stringBuilder.toString(); } }