Show ASCII table: Difference between revisions

(→‎{{header|J}}: simplify)
Line 3,017:
 
=={{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.
32 32 48 0 64 @ 80 P 96 ` 112 p
<pre> 32}._129}.a.
33 ! 33 ! 49 1 65 A 81 Q 97 a 113 q
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
34 " 34 " 50 2 66 B 82 R 98 b 114 r
35 # 35 # 51 3 67 C 83 S 99 c 115 s
36 $ 36 $ 52 4 68 D 84 T 100 d 116 t
37 % 37 % 53 5 69 E 85 U 101 e 117 u
38 & 38 & 54 6 70 F 86 V 102 f 118 v
39 ' 39 ' 55 7 71 G 87 W 103 g 119 w
40 ( 40 ( 56 8 72 H 88 X 104 h 120 x
41 ) 41 ) 57 9 73 I 89 Y 105 i 121 y
42 * 42 * 58 : 74 J 90 Z 106 j 122 z
43 + 43 + 59 ; 75 K 91 [ 107 k 123 {
44 , 44 , 60 < 76 L 92 \ 108 l 124 |
45 - 45 - 61 = 77 M 93 ] 109 m 125 }
46 . 46 . 62 > 78 N 94 ^ 110 n 126 ~
47 47 / 63 ? 79 O 95 _ 111 o 127 
</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
47 63 79 95 111 127
 
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
32 48 0 64 @ 80 P 96 ` 112 p
33 ! 49 1 65 A 81 Q 97 a 113 q
34 " 50 2 66 B 82 R 98 b 114 r
35 # 51 3 67 C 83 S 99 c 115 s
36 $ 52 4 68 D 84 T 100 d 116 t
37 % 53 5 69 E 85 U 101 e 117 u
38 & 54 6 70 F 86 V 102 f 118 v
39 ' 55 7 71 G 87 W 103 g 119 w
40 ( 56 8 72 H 88 X 104 h 120 x
41 ) 57 9 73 I 89 Y 105 i 121 y
42 * 58 : 74 J 90 Z 106 j 122 z
43 + 59 ; 75 K 91 [ 107 k 123 {
44 , 60 < 76 L 92 \ 108 l 124 |
45 - 61 = 77 M 93 ] 109 m 125 }
46 . 62 > 78 N 94 ^ 110 n 126 ~
47 / 63 ? 79 O 95 _ 111 o 127 � </pre>
 
=={{header|Java}}==
6,951

edits