public class StringUtils
extends java.lang.Object
Constructor and Description |
---|
StringUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
capitalizeFirstChar(java.lang.String string) |
static java.lang.String |
padLeft(java.lang.Object s,
int n) |
static java.lang.String |
padRight(java.lang.String s,
int n) |
static java.lang.String |
repeatString(int numberOfRepeats,
java.lang.String val) |
public static java.lang.String capitalizeFirstChar(java.lang.String string)
string
- - String to capitalizepublic static java.lang.String repeatString(int numberOfRepeats, java.lang.String val)
numberOfRepeats
- - number of times to repeat this stringval
- - value of string to repeatpublic static java.lang.String padLeft(java.lang.Object s, int n)
s
- the String to padn
- the padding amountpublic static java.lang.String padRight(java.lang.String s, int n)
s
- the String to padn
- the padding amount