Android StringBuilder Append appendStr(char splitTag, Object... strs)

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

Description

append Str

License

Open Source License

Declaration

public static String appendStr(char splitTag, Object... strs) 

Method Source Code

//package com.java2s;

public class Main {
    public static String appendStr(Object... strs) {
        if (null == strs) {
            return "";
        }/*from   www.j a  v  a  2  s.  c om*/
        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. appendNormalisedWhitespace(StringBuilder accum, String string, boolean stripLeading)
  2. appendLine(final StringBuilder s, final CharSequence line)
  3. byteToString(StringBuilder sb, byte b)
  4. addStartLine(Object aObject, StringBuilder aResult)
  5. appendByteAsHex(StringBuilder sb, byte b)