Here you can find the source of addSuffix(String src, String suffix)
public static String addSuffix(String src, String suffix)
//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(); } }