public final class StringUtil
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static java.util.Comparator<java.lang.String> | CASE_SENSITIVE_ORDERProvides a Comparator for Strings that sorts in Case Sensitive Order. | 
| Modifier and Type | Method and Description | 
|---|---|
| static boolean | hasBalancedParens(java.lang.String string)Tests to see if the given String has balanced parenthesis. | 
| static java.lang.String | join(java.util.Collection<?> collection,
    java.lang.String separator)Concatenates the Collection of Objects (converted to Strings using
 .toString()) into a String using the separator as the delimiter. | 
| static java.lang.String | join(java.lang.String[] stringArray,
    java.lang.String separator)Concatenates the Array of Strings into a String using the separator as
 the delimiter. | 
| static java.lang.StringBuilder | joinToStringBuilder(java.util.Collection<?> collection,
                   java.lang.String separator)Concatenates the Collection of Objects (converted to Strings using
 .toString()) into a StringBuilder using the separator as the delimiter. | 
| static java.lang.String | replaceAll(java.lang.String original,
          java.lang.String find,
          java.lang.String replace)Replaces all of the instances of the find String with newStr in the
 (first) given String. | 
public static final java.util.Comparator<java.lang.String> CASE_SENSITIVE_ORDER
public static java.lang.String join(java.util.Collection<?> collection,
                    java.lang.String separator)
collection - An Collection of objectsseparator - The separating stringpublic static java.lang.StringBuilder joinToStringBuilder(java.util.Collection<?> collection,
                                          java.lang.String separator)
collection - An Collection of objectsseparator - The separating characterpublic static java.lang.String join(java.lang.String[] stringArray,
                    java.lang.String separator)
stringArray - An Array of stringsseparator - The separating stringpublic static java.lang.String replaceAll(java.lang.String original,
                          java.lang.String find,
                          java.lang.String replace)
original - The input String in which the String replacement should take
            placefind - The String to find within the input String, and which will be
            replaced by the newStrreplace - The new String that replaces the String to find within the
            input Stringpublic static boolean hasBalancedParens(java.lang.String string)
string - The String to be tested to see if it has balanced parenthesis