Here you can find the source of appendStr(Object... strs)
public static String appendStr(Object... strs)
//package com.java2s; public class Main { public static String appendStr(Object... strs) { if (null == strs) { return ""; }/*from www .ja v a 2 s. co m*/ StringBuilder str = new StringBuilder(); for (Object demp : strs) { str.append(demp); } return str.toString(); } public static String appendStr(char splitTag, Object... strs) { if (null == strs) { return ""; } StringBuilder str = new StringBuilder(); for (Object demp : strs) { str.append(demp); str.append(splitTag); } return str.toString(); } }