Show ASCII table: Difference between revisions
Content added Content deleted
(→{{header|J}}: simplify) |
|||
Line 3,017: | Line 3,017: | ||
=={{header|J}}== |
=={{header|J}}== |
||
<syntaxhighlight lang=J> ;"1 ((_6{.":),' ',7 u:])each 32+|:i.6 16 |
|||
a. is the 256 ASCII character set. We'll do a bit of work to make it pretty as the other examples. |
|||
⚫ | |||
<pre> 32}._129}.a. |
|||
⚫ | |||
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~ |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
</syntaxhighlight> |
|||
Note that ascii 127 does not have a standard representation, so its appearance will depend on a variety of issues. |
|||
NB. A are the decimal ASCII values |
|||
[A =: 10 |."1 ] 12 ": |: _16 [\ 32 }. i. 128 |
|||
32 48 64 80 96 112 |
|||
33 49 65 81 97 113 |
|||
34 50 66 82 98 114 |
|||
35 51 67 83 99 115 |
|||
36 52 68 84 100 116 |
|||
37 53 69 85 101 117 |
|||
38 54 70 86 102 118 |
|||
39 55 71 87 103 119 |
|||
40 56 72 88 104 120 |
|||
41 57 73 89 105 121 |
|||
42 58 74 90 106 122 |
|||
43 59 75 91 107 123 |
|||
44 60 76 92 108 124 |
|||
45 61 77 93 109 125 |
|||
46 62 78 94 110 126 |
|||
⚫ | |||
NB. B are the corresponding ASCII characters |
|||
[B =: |:_16[\32}._128}.a. |
|||
0@P`p |
|||
!1AQaq |
|||
"2BRbr |
|||
#3CScs |
|||
$4DTdt |
|||
%5EUeu |
|||
&6FVfv |
|||
'7GWgw |
|||
(8HXhx |
|||
)9IYiy |
|||
*:JZjz |
|||
+;K[k{ |
|||
,<L\l| |
|||
-=M]m} |
|||
.>N^n~ |
|||
/?O_o� |
|||
NB. stuff the characters into the text array of numbers |
|||
B [`((4 12 p. i. 6)"_)`]}"1 A |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
47 / 63 ? 79 O 95 _ 111 o 127 � </pre> |
|||
=={{header|Java}}== |
=={{header|Java}}== |