1. Home
  2. Computing & Technology
  3. Java
Paul Leahy
Paul's Java Blog

By Paul Leahy, About.com Guide to Java

Monday's Programming Question

Monday November 17, 2008

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

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Discuss
Readers Respond
What Do You Think of Apatite?
Add Your Response

Recent Blog Posts
Explore Java
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Java

©2009 About.com, a part of The New York Times Company.

All rights reserved.