public class CheapSplitter extends Object
| Constructor and Description |
|---|
CheapSplitter() |
| Modifier and Type | Method and Description |
|---|---|
static ArrayList<String> |
split(String value,
char sep,
boolean returnSep,
boolean trimTokens)
Splits the string on the specified separator character.
|
public static ArrayList<String> split(String value, char sep, boolean returnSep, boolean trimTokens)
value - The string to be split.sep - The separator character.returnSep - A flag to indicate if you want the separators back in the return value.trimTokens - If true, the values between the separators will be trimmed() before being
added to the result array.Copyright © 2023. All rights reserved.