StringHelper: new method signature

thobaben_serialize
Harald Wolff 2014-09-09 23:50:47 +02:00
parent ed206b4596
commit 68a72f0b71
1 changed files with 6 additions and 0 deletions

View File

@ -1,10 +1,16 @@
package org.hwo;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
public class StringHelper {
public static String join(String[] c,String del)
{
return join( Arrays.asList(c),del);
}
public static String join(Collection<?> c,String del)
{
StringBuilder sb = new StringBuilder();