Character codes: Difference between revisions
make J implementation support unicode
(PowerShell implementation) |
(make J implementation support unicode) |
||
Line 188:
=={{header|J}}==
4 u: 97 98 99 9786
abc☺
97 98 99 9786
=={{header|Java}}==
<tt>char</tt> is already an integer type in Java, and it gets automatically promoted to <tt>int</tt>. So you can use a character where you would otherwise use an integer. Conversely, you can use an integer where you would normally use a character, except you may need to cast it, as <tt>char</tt> is smaller.
|