@@ -0,0 +1,609 @@
+/*%0A * StrUtils.java%0A *%0A * Author: Ming Tsang%0A * Copyright (c) 2015 Ming Tsang%0A * Refer to LICENSE for details%0A */%0A%0Apackage com.nkming.utils.str;%0A%0Aimport java.util.Collection;%0A%0Apublic class StrUtils%0A%7B%0A%09/**%0A%09 * Join multiple objects with toString(). @a glue will be inserted between%0A%09 * each objects%0A%09 *%0A%09 * @param glue%0A%09 * @param c%0A%09 * @return%0A%09 */%0A%09public static %3CT%3E String Implode(String glue, Collection%3CT%3E c)%0A%09%7B%0A%09%09String product = null;%0A%09%09for (T obj : c)%0A%09%09%7B%0A%09%09%09if (product == null)%0A%09%09%09%7B%0A%09%09%09%09product = obj.toString();%0A%09%09%09%7D%0A%09%09%09else%0A%09%09%09%7B%0A%09%09%09%09product += glue + obj.toString();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return product;%0A%09%7D%0A%7D%0A

Add implode to join strings