Android String Append appendStr(Object... strs)

Here you can find the source of appendStr(Object... strs)

Description

append Str

License

Open Source License

Declaration

public static String appendStr(Object... strs) 

Method Source Code

//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();
    }
}

Related

  1. append(final String string, final String append, final String delimiter)
  2. add(String str, int num)
  3. addSuffix(String src, String suffix)
  4. concat(Object... chunks)