public class StringUtil extends Object
| Modifier and Type | Method and Description | 
|---|---|
static String | 
join(Collection parts,
    String delimiter)
Join the Strings within the parts Collection, inserting the delimiter in between elements 
 | 
static String | 
padLeft(String string,
       int width)
Pad the specified String with spaces to the left to the specified width. 
 | 
static String | 
padRight(String string,
        int width)
Pad the specified String with spaces to the right to the specified width. 
 | 
public static String padRight(String string, int width)
string - - the String to padwidth - - the target widthpublic static String padLeft(String string, int width)
string - - the String to padwidth - - the target widthpublic static String join(Collection parts, String delimiter)
parts - - the Collection of Strings to joindelimiter - - the delimiter String to insert between the partsCopyright © 2016. All rights reserved.