more comments
This commit is contained in:
1 parent
11e1d9e03f
commit
c64891a046
1 file changed
+6
@@ -4,6 +4,12 @@ public class pangapass {
|
||||
|
||||
public static void main(String[] args) {
|
||||
for (int i = 0; i <= 9999; i++) {
|
||||
// java string format magic
|
||||
// % - start of a format token
|
||||
// 04 - add 4 leading zeros
|
||||
// d - type is int
|
||||
// % - start of a new format token
|
||||
// n - inserts a new line
|
||||
System.out.printf("%04d%n", i);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user