Focus: Loops, Code Points
Code Point Question
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?
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.
To get the most out of this question try and figure out the answer before coming back to read the solution on the next page.