StringHelper: new method signature
parent
ed206b4596
commit
68a72f0b71
|
@ -1,10 +1,16 @@
|
||||||
package org.hwo;
|
package org.hwo;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
public class StringHelper {
|
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)
|
public static String join(Collection<?> c,String del)
|
||||||
{
|
{
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
|
|
Loading…
Reference in New Issue