de.saar.basic
Class StringTools

Object
  extended by StringTools

public class StringTools
extends Object

A collection of various utility functions for strings.

Author:
Alexander Koller

Constructor Summary
StringTools()
           
 
Method Summary
static
<E> String
join(Collection<E> strings, String separator)
          Joins a list of strings into a larger string.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTools

public StringTools()
Method Detail

join

public static <E> String join(Collection<E> strings,
                              String separator)
Joins a list of strings into a larger string. This is similar to Perl's join() function.

Parameters:
strings - a list of strings
separator - a string that is inserted between any two members of the list
Returns:
the joined string