SyntaxFix
Write A Post
Hire A Developer
Questions
Use the StringUtils class, it also includes null check
StringUtils.leftPad(String str, int size) StringUtils.rightPad(String str, int size)