public final class TextUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
leftPad(String text,
String padding,
int linesToIgnore)
Inserts the specified string at the beginning of each newline of the specified text.
|
static String[] |
splitWords(String text)
Split a text into an array of words using space (" ") as separator.
|
public static String[] splitWords(String text)
text
- the text to split.public static String leftPad(String text, String padding, int linesToIgnore)
text
- the text to pad.padding
- the padding.linesToIgnore
- the number of lines to ignore before starting the padding.Copyright © 2013-2018–2019 SeedStack. All rights reserved.