I have an array of 8-bit integers, each of which I'm trying to complement (and then mask) with a bitwise not operator.
But it appears to me that in Java, the 32-bit integer is complemented. (I'm using Java 6.)
// Get the first bit of the first int (4-bits)
int first_bit = (int) (value >> 24);
// Mask the first bit of the first int, which now has a value of 0x00000004
// So now the first int will be complementing to a value of 0xFFFFFFFC
How do I get the full complement of an integer? (I know I can do a bitwise AND with 0xffffffff but I'm trying to use Java's bitwise operators)
How about this?
System.out.println((value ^ 0xFFFFFFFC) & value);
Note: Be careful about overflow here, which will occur if value is not properly a 32 bit integer.
Is there an association between the human papillomavirus and urinary bladder cancer? A case-control study.
Infection with oncogenic human papillomaviruses (HPVs) is a known cause of human cervical cancer. To determine whether the presence of HPV DNA in the urine of cancer patients is a marker of urinary bladder cancer, we performed PCR for HPV DNA from the urine of 42 cases of bladder cancer and 42 age-, sex-, and anatomic site-matched control patients with histologically benign, exfoliative bladder conditions. HPV DNA was detected in 4 (9.5%) of 42 cancer patients and in none of the control 0b46394aab