java 取N位数,前面补0

// "%04d" 取4位数
String.format("%04d", 19)
原文地址:https://www.cnblogs.com/yxfcnbg/p/14489074.html