1、在左边补0
StringUtils.leftPad("34", 8, "0")
例子:00000034
2、在所有字符串中间加一个字符串
StringUtils.join(new String[]{"cat","dog","carrot","leaf","door"}, ":")
例子:cat:dog:carrot:leaf:door
1、在左边补0
StringUtils.leftPad("34", 8, "0")
例子:00000034
2、在所有字符串中间加一个字符串
StringUtils.join(new String[]{"cat","dog","carrot","leaf","door"}, ":")
例子:cat:dog:carrot:leaf:door