Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

I dont now which type

Phillipe Rodrigues
Ranch Hand

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

Marcus Smedman

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

will print:

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15082

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 8 API documentation
I agree. Here's the link:
subject: I dont now which type
It's not a secret anymore!