首页 > 其他分享 >字符串格式化、字符串补0

字符串格式化、字符串补0

时间:2023-01-27 18:02:42浏览次数:40  
标签:count 格式化 String format booleanExpression 位用 字符串

不够6位用0在左边补0
Long count = getCountByPredicate(booleanExpression);
return String.format("%06d",count);

 



标签:count,格式化,String,format,booleanExpression,位用,字符串
From: https://blog.51cto.com/u_15242378/6024187

相关文章