StringUtils的一些常用功能

//在字符串str左侧添加maxLength-str.length()个0。

org.apache.commons.lang.StringUtils.leftPad(str, maxLength, "0"); 

猜你喜欢

转载自tagalin.iteye.com/blog/2292500