Hi as the title says i need help with converting a string with a hexdecimal(00ff00) into an int.
Any help will be appreciated :)
Printable View
Hi as the title says i need help with converting a string with a hexdecimal(00ff00) into an int.
Any help will be appreciated :)
Moved from JDBC. Whatever made you think that was a suitable section to post this?
Doesn't make sense. You want to convert a String to a String? It's already a String.Quote:
converting a string with a hexdecimal(00ff00) into a string.
If, following your topic line, what you really want to do is obtain an int value from a hexadecimal String representation, take a look at the methods of the Integer class.
db
Sorry i mistyped and yes i meant it to be int.
This is what made me think JDBC was the right section http://www.java-forums.org/jdbc/3707...ut-string.html
It's the same error
That was an old thread from a period when the forum had less moderators.
I've moved that one too. Thank you for the link.
Did you find the method you need in the Integer API?
db
Np and i haven't found it yet. I'm still new to java :)
Did you find the API for Integer?
db
No i have been looking for it on google and in JRE System Lib in eclipse
Here is an API link:
Java Platform SE 6
Find the name of the class in the lower left and click it for the doc to be shown in the main window
Thanks