[Logo]
Forums Register Login
I dont now which type
Hi,
I am new to java.I dont now which type(octal,hex,...)the below value refer to.
value =0xc521974f
How to convert it to decimal form.

request your help
What about:



will print:

Integer literals that start with "0x" such as in your example are in hexadecimal notation.
Your mother was a hamster and your father was a tiny ad:
The WEB SERVICES and JAX-RS Course
https://coderanch.com/t/690789/WEB-SERVICES-JAX-RS


This thread has been viewed 635 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 18, 2018 15:23:17.