java补全

import java.text.NumberFormat;

public class Test {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int s = 0;
int e = 9999;
for (int i = s; i < e; i++) {
NumberFormat formatter = NumberFormat.getNumberInstance();
formatter.setMinimumIntegerDigits(4);
formatter.setGroupingUsed(false);
String str = formatter.format(i);
System.out.println(str);
}
}
}

你可能感兴趣的:(java)