Pads the string with the specified character.
Syntax
public static String padLeft(String src, char padWith, int totalLen)
Parameters
Return values
A new padded string.
Notes
Pads the string with a specified character.
Examples
The following call returns 0000012345:
padLeft("12345", '0', 10);
The following call returns 123456:
padLeft("123456", '0', 5);