Monday's Programming Question
This week I thought it might be interesting to put Unicode code points into action. Every character defined in the Unicode standard is given a specific number called a code point. These code points are written as hexadecimal numbers prefixed by "U+". For example, the character "A" is U+0041.
Write a Java program that accepts a range of Unicode code point numbers from the user (i.e., U+0041 to U+0051) and then displays all the Unicode characters that are contained within that range. The question is can your program display the characters for the range U+0021 to U+007F and what characters are they?
Hint: If you need to find a way to convert a hexadecimal code point to a character, have a look at the methods of the Character class.


Comments
No comments yet. Leave a Comment