public class front0add { public static void main(String[] args) { // TODO Auto-generated method stub String newString = String.format("%04d",718); System.out.println("newString == "+newString); } }
public class front0add { public static void main(String[] args) { // TODO Auto-generated method stub String newString = String.format("%04d",718); System.out.println("newString == "+newString); } }
转载于:https://www.cnblogs.com/thiaoqueen/p/6928428.html