Re: 0x00FF Arrg...
- From: Roedy Green <my_email_is_posted_on_my_website@xxxxxxxxxxxxxx>
- Date: Thu, 25 May 2006 04:56:00 GMT
On 20 May 2006 02:15:16 -0700, "IveCal" <ive.cal@xxxxxxxxx> wrote,
quoted or indirectly quoted someone who said :
sb.append( ( int )( 0x00FF & b ) ); ==> PROBLEM!!!
I think you want a hex string.
the & automatically promotes to int so (int) does nothing.
Then you want to go back to a String, a HEX string rather than the
default decimal one.
See http://mindprod.com/jgloss/hex.html
http://mindprod.com/applets/converter.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.
- References:
- 0x00FF Arrg...
- From: IveCal
- 0x00FF Arrg...
- Prev by Date: Re: What JRE version are you using?
- Next by Date: Re: Get classes from package
- Previous by thread: Re: 0x00FF Arrg...
- Next by thread: Re: query ms access database from the user
- Index(es):
Relevant Pages
|