Java字符串右侧补零实现

本文不再更新,可能存在内容过时的情况,实时更新请访问原地址:Java字符串右侧补零实现

实现代码:

org.apache.commons.lang3.StringUtils.rightPad(areaCode.getProvince() + areaCode.getCity(), 6, "0")
原文地址:https://www.cnblogs.com/cobcmw/p/12897771.html