Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java in General
Integer
Aruna Balasuriya
Ranch Hand
Posts: 44
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why this code fail at runtime
public class Test{
public static void main(
String
[] args) {
Integer i = Integer.parseInt("0xF",16);
System.out.println(i);
}
}
Henry Wong
author
Posts: 23951
142
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
The "0x" prefix is used by the compiler to inform the compiler to parse the following token as a hexidecimal string.
It is not needed, nor supported, by the Integer parseInt() method, as the radix is passed as a parameter.
Henry
Books:
Java Threads, 3rd Edition
,
Jini in a Nutshell
, and
Java Gems (contributor)
Yeah, but does being a ninja come with a dental plan? And what about this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Var args question...
Unable to deploy an EJB.
wrapper class
Exception:Attempt to get a lock for a null object ?
Wrapper Class
More...