Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Converting an Integer to a Binary String

807600Oct 21 2007 — edited Oct 22 2007
I am trying to implement a function for fast modular exponentiation and I wanted to know if there was a way to extract a binary string, maybe in the form of an array, from an integer

i.e. 5 --> {1,0,1}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 19 2007
Added on Oct 21 2007
8 comments
483 views