String Character Length: Difference between revisions
Content deleted Content added
Line 168: | Line 168: | ||
==[[Java]]== |
==[[Java]]== |
||
[[Category:Java]] |
[[Category:Java]] |
||
'''Compiler:''' any Java compiler should do |
|||
Java encodes strings in UTF-16, which represents each character with one or two 16-bit values. The most commonly used characters are represented by one 16-bit value, while rarer ones like some mathematical symbols are represented by two. |
Java encodes strings in UTF-16, which represents each character with one or two 16-bit values. The most commonly used characters are represented by one 16-bit value, while rarer ones like some mathematical symbols are represented by two. |