20.8
java.lang.Long
THE PACKAGE JAVA.LANG
order shown. Thus, the digits for hexadecimal (radix 16) are
0123456789abcdef
.
If uppercase letters are desired, the
toUpperCase
 method ( 20.12.36) of class
String
 may be called on the result:
Long.toString(n, 16).toUpperCase()
20.8.14
public static String toHexString(long i)
The argument is converted to an unsigned representation in hexadecimal radix
(base 16); this representation is returned as a string.
The result represents the unsigned magnitude of the argument. This equals the
argument plus 2
64
if the argument is negative; otherwise, it equals the argument.
If the unsigned magnitude is zero, it is represented by a single zero character
 0 
  (
 \u0030 
); otherwise, the first character of the representation of the
unsigned magnitude will not be the zero character. The following characters are
used as hexadecimal digits:
0123456789abcdef
These are the characters
 \u0030 
 through
 \u0039 
 and
 \u0061 
 through
 \u0066 
. If uppercase letters are desired, the
toUpperCase
 method ( 20.12.36)
of class
String
 may be called on the result:
Long.toHexString(n).toUpperCase()
20.8.15
public static String toOctalString(long i)
The argument is converted to an unsigned representation in octal radix (base 8);
this representation is returned as a string.
The result represents the unsigned magnitude of the argument. This equals the
argument plus 2
64
if the argument is negative; otherwise, it equals the argument.
If the unsigned magnitude is zero, it is represented by a single zero character
 0 
  (
 \u0030 
); otherwise, the first character of the representation of the
unsigned magnitude will not be the zero character. The following characters are
used as octal digits:
01234567
These are the characters
 \u0030 
 through
 \u0037 
.
498






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