public class StringUtil
extends java.lang.Object
Strings
class implements static utility methods for dealing with
String
objects.Constructor and Description |
---|
StringUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
capitalizeFirstCharacter(java.lang.String s)
Capitalizes the first character of the given string.
|
static boolean |
isEmpty(java.lang.String s)
Returns true if the given String is null or empty.
|
static boolean |
isWhitespace(java.lang.String s)
Returns true if the given String is null or all whitespace.
|
public static boolean isEmpty(java.lang.String s)
s
- A string.public static boolean isWhitespace(java.lang.String s)
s
- A string.public static java.lang.String capitalizeFirstCharacter(java.lang.String s)
s
- The string to capitalize.