Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
15
Task/Show-ASCII-table/Groovy/show-ascii-table.groovy
Normal file
15
Task/Show-ASCII-table/Groovy/show-ascii-table.groovy
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
class ShowAsciiTable {
|
||||
static void main(String[] args) {
|
||||
for (int i = 32; i <= 127; i++) {
|
||||
if (i == 32 || i == 127) {
|
||||
String s = i == 32 ? "Spc" : "Del"
|
||||
printf("%3d: %s ", i, s)
|
||||
} else {
|
||||
printf("%3d: %c ", i, i)
|
||||
}
|
||||
if ((i - 1) % 6 == 0) {
|
||||
println()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue