20.5
java.lang.Character
THE PACKAGE JAVA.LANG
[This specification for the method
digit
 is scheduled for introduction in Java
version 1.1, either as defined here, or updated for Unicode 2.0; see  20.5. In previ 
ous versions of Java, this method returns
 1
 for all character codes larger than
\u00FF
.]
20.5.24
public static char forDigit(int digit, int radix)
Returns a character that represents the given digit in the specified radix. If the
value of
radix
 is not a valid radix, or the value of
digit
 is not a valid digit in the
specified radix, the null character
 \u0000 
 is returned.
A radix is valid if and only if its value is not less than
Character.MIN_RADIX
( 20.5.3) and not greater than
Character.MAX_RADIX
 ( 20.5.4).
A digit is valid if and only if it is nonnegative and less than the
radix
.
If the digit is less than
10
, then the character value
 0 +digit
 is returned;
otherwise,
 a +digit 10
 is returned. Thus, the digits produced by
forDigit
, in
increasing order of value, are the ASCII characters:
0123456789abcdefghijklmnopqrstuvwxyz
(these are
 \u0030 
 through
 \u0039 
 and
 \u0061 
 through
 \u007a 
). If
uppercase letters are desired, the
toUpperCase
 method may be called on the
result:
Character.toUpperCase(Character.forDigit(digit, radix))
486






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Inexpensive Web Hosting  Jsp Web Hosting

Cheapest Web Hosting Jsp Hosting Cheap Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved