Java tutorial
//package com.java2s; import android.text.TextUtils; public class Main { public static void appendAndSeparateIfNotEmpty(StringBuilder stringbuilder, CharSequence charsequence) { if (!TextUtils.isEmpty(charsequence)) stringbuilder.append(charsequence).append(". "); } }