public abstract class StringUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_STRING_ARRAY |
| Modifier | Constructor and Description |
|---|---|
protected |
StringUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
count(String str,
int value)
Counts the number of times the character with the given unicode
value occurs. |
static String |
extractBack(String s,
char delim) |
static String[] |
split(String str,
int delimiter)
Splits a string by a given unicode
delimiter. |
public static final String[] EMPTY_STRING_ARRAY
public static int count(String str, int value)
value occurs.str - the input string, may be null or emptyvalue - the unicode value to search forvalue occurs.public static String[] split(String str, int delimiter)
delimiter.str - the input string, may be null or emptydelimimiter - the delimiter to useCopyright © 2015. All Rights Reserved.