蓝桥杯 基础练习 01字串
作者:互联网
问题描述
Java 代码实现
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
for (int i = 0; i < 32; ++i) {
System.out.printf("%05d\n", Integer.valueOf(Integer.toBinaryString(i)));
}
in.close();
}
}
标签:01,Java,Scanner,System,蓝桥,字串,Integer,public 来源: https://www.cnblogs.com/Acx7/p/15824815.html