You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
306 B
15 lines
306 B
5 months ago
|
package com.hfkj.common.utils;
|
||
|
|
||
|
public class PartnerNumUtil {
|
||
|
|
||
|
|
||
|
public static String numLength(Integer num){
|
||
|
|
||
|
StringBuilder sb = new StringBuilder();
|
||
|
for (int i = 0; i < String.valueOf(num).length() -1; i++) {
|
||
|
sb.append('0');
|
||
|
}
|
||
|
return sb.toString();
|
||
|
}
|
||
|
}
|