This week's book giveaway is in the HTML and JavaScript forum.
See this thread for details. The moose likes Java in General and
the fly likes hex string to string Big Moose Saloon Register /
Login  JavaRanch » Java Forums » Java » Java in General Bookmark
"hex string to string" Watch "hex string to string" New topic
hex string to string  Tyler Jordan Ranch Hand  Joined: Nov 17,
2003 Posts: 70 I've been pulling my hair out trying to get the
following code to work. My problem has been I need to compare a
string of values with a hexadecimal value. What I decided to do
was break out the string using chars and then reassemble it into
a string. The problem is my conditional will not declare the two
strings as the same, even though when I println them out, they
are. If I create a string and compare it works. Is there some
other way to get the literal value of oidValue? You will notice
I only want the first 8 chars. Any help is appreciated! oidValue
is a hex string it was converted using toHexString() oidValue =
00