Subversion Repositories eFlore/Applications.coel

Rev

Rev 232 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package org.tela_botanica.client.util;

public class UtilArray {
        
        /**
         * @see http://leghumped.com/blog/2007/12/20/in_array-and-implode-for-java/
         * @param ary
         * @param delim
         * @return
         */
        public static String implode(String[] ary, String delim) {
            String out = "";
            for (int i = 0; i < ary.length; i++) {
                if (i != 0) { out += delim; }
                out += ary[i];
            }
            return out;
        }
        
}