Java

  1. Home
  2. Computing & Technology
  3. Java
photo of 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

Community Forum

Explore Java

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Java

  1. Home
  2. Computing & Technology
  3. Java

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

All rights reserved.