How to check the double byte character fall in 'A'..'Z' and 0..9?

hi all,Is there anyone experienced with how to check the double byte character fall in 'A'..'Z' and 0..9?example, read a char then compare with \uFF21..\uFF3AThanks,regards,Elvis
[231 byte] By [airqq] at [2007-9-26 3:19:51]
# 1

Can you provide a little more information. If you want to know whether or not a character falls within a specific range, the following code will work:

char c;

// read your character

if (c >= '\uFF21' && c <= '\uFF3a') {

// do something

}

Since Java uses Unicode (UCS2) internally, there is no difference in treatment between so called double byte characters or any other character.

Andy

deitsch at 2007-6-29 11:35:13 > top of Java-index,Desktop,I18N...