About Strings
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Vamsi_Nagavarapu
Posted On:   Saturday, June 17, 2006 06:02 AM

How to convert String to bits?

Re: About Strings

Posted By:   suresh_kumar  
Posted On:   Saturday, June 24, 2006 04:14 AM

pls anybody knows help me

Re: About Strings

Posted By:   Robert_Lybarger  
Posted On:   Saturday, June 17, 2006 08:54 AM

String defines a method getBytes() that returns a byte[] array. If you need "bits" from that, then you'll need to explicitly perform manual bit operations on the byte[] array entries... since, generally speaking, the representation of bits for a given piece of data can be system and/or architecture dependent. (Example: do you write the bytes starting from the high-value first, or from the low-value first?) Review your bit operators: >>> and & notably.
About | Sitemap | Contact