N
nick
for (int j = 0; j <= 7; j++) {
System.out.println(Integer.toBinaryString(j));
}
the result:
0
1
10
11
......
how to make the print result become:
00000
00001
00010
00011
.........
thanks!
System.out.println(Integer.toBinaryString(j));
}
the result:
0
1
10
11
......
how to make the print result become:
00000
00001
00010
00011
.........
thanks!