Java之向左添加零(000001)
int i_m = 270000 ;
String str_m = String.valueOf(i_m);
String str ="000000";
str_m=str.substring(0, 6-str_m.length())+str_m;
System.out.println(str_m);
曹肖扬
19913146193
int i_m = 270000 ;
String str_m = String.valueOf(i_m);
String str ="000000";
str_m=str.substring(0, 6-str_m.length())+str_m;
System.out.println(str_m);