Subversion Repositories eFlore/Applications.coel

Rev

Rev 1415 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
232 jp_milcent 1
package org.tela_botanica.client.util;
2
 
3
public class UtilArray {
4
 
5
	/**
6
	 * @see http://leghumped.com/blog/2007/12/20/in_array-and-implode-for-java/
7
	 * @param ary
8
	 * @param delim
9
	 * @return
10
	 */
11
	public static String implode(String[] ary, String delim) {
12
	    String out = "";
13
	    for (int i = 0; i < ary.length; i++) {
14
	        if (i != 0) { out += delim; }
15
	        out += ary[i];
16
	    }
17
	    return out;
18
	}
19
 
20
}