wood burning stoves*
The moose likes Beginning Java and the fly likes I dont now which type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "I dont now which type" Watch "I dont now which type" New topic
Author

I dont now which type

Phillipe Rodrigues
Ranch Hand

Joined: Oct 30, 2007
Posts: 165
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


Thanks,
Marcus Smedman
Greenhorn

Joined: Apr 07, 2008
Posts: 12
What about:



will print:

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

Integer literals that start with "0x" such as in your example are in hexadecimal notation.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I dont now which type