public final class Util extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
ZERO_LENGTH_STRING_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static String |
multiplicate(char c,
int times)
Repeats text multiple times
|
static String |
randomString(Random rnd,
String value)
Creates random string up to 10 symbols long
|
static String[] |
stringToCharsSubstrings(String str)
Splits string into array of single-character strings
|
public static final String[] ZERO_LENGTH_STRING_ARRAY
public static String[] stringToCharsSubstrings(String str)
str - string to splitpublic static String randomString(Random rnd, String value)
rnd - random to be usedvalue - seed used to select lengthpublic static String multiplicate(char c, int times)
c - character to repeattimes - number of times. Values less or equal to zero will result in empty stringCopyright © 2020. All rights reserved.