Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Trivial
-
Resolution: Won't Fix
-
Affects Version/s: 3.3
-
Fix Version/s: 4.0 - requires JDK6
-
Component/s: Core
-
Labels:None
-
Number of attachments :
Description
Getting the ASCII or Unicode value of a character is simple in Java. The char type is already an integer type, so you can simply use it in most places that you would use an int. To print it out as an integer (since characters are usually printed out as the character and not the integer value), simply cast it into an int.
From http://www.codecodex.com/wiki/Find_the_ASCII_or_Unicode_value_of_a_character
The idea is to allow assigning an int-values to a Character/char, for properties or variables that are char-type. Is there more or did is this summmary correct?