Android String Append addSuffix(String src, String suffix)

Here you can find the source of addSuffix(String src, String suffix)

Description

add Suffix

Declaration

public static String addSuffix(String src, String suffix) 

Method Source Code

//package com.java2s;

public class Main {

    public static String addSuffix(String src, String suffix) {
        if (src == null || suffix == null) {
            return src;
        }/*from ww  w . java 2  s  .  c  om*/
        StringBuilder sb = new StringBuilder();
        sb.append(src);
        sb.append(suffix);
        return sb.toString();
    }
}

Related

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