Class StringUtil

Hierarchy: Object , StringUtil
public class StringUtil
Utility methods for working with Strings.
Authors:
Martin Davis
public static String[] split(String s, String separator)
Mimics the the Java SE String.split(String) method.
Parameters:
s - s the string to split.
separator - separator the separator to use.
Returns:
the array of split strings.
public static String getStackTrace(Throwable t)
Returns an throwable's stack trace
public static String getStackTrace(Throwable t, int depth)
public static String toString(double d)
Returns a string representation of the given number, using a format compatible with WKT.
Parameters:
d - d a number
Returns:
a string
Deprecation:
use OrdinateFormat
public static String spaces(int n)
public static String chars(char c, int n)