Daniel Sopel Daniel Sopel 902 3 12 16.
I thought its for a-z, A-Z and 0-9 only? Characters in Java are all Unicode based. The Character.
The preceding code is wrong because it works only with English and a few other languages. Hot Network Questions.
Thanks for letting me know. For example, accented letters, cyrillic, sanskrit,...
I'm looking for a function that checks only if it's one of the Latin letters or a decimal number. What does your answer add that hasn't been covered in the previous answers?
YuppieNetworking YuppieNetworking 5,987 6 34 61. If you want to know if a character is a Unicode letter or digit, then use the Character. Ask Question.
Adam Adam 29. Use Character. The general solution is to do this: Stephen C Stephen C 521k 70 578 937. In some cases you will need to test for multiple blocks. Would you like to answer one of these unanswered questions instead? To internationalize the previous example, replace it with the following statements: