Skip to Main Content

Java Programming

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!

how can i use the AND opperator to AND to arrays

807607Oct 9 2006 — edited Oct 9 2006
hi, i have two large arrays of booleans and i need to copy all the true values from array 1 to array2 without losing the trues that are already in array 2. From my knowledge of asm, i know that using the AND opperator is perfect for this, seeing as each boolean only takes one bit.

Searching and is kinda useless, so my search failed, could someone give me a quick code example, say x = 1 AND 2 or something. Thats all i need, thanks.

PS: x should = 3

Message was edited by:
dead
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 6 2006
Added on Oct 9 2006
6 comments
94 views