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