How do you do. I am doing well thank you. Swap two number by using reference operators A tough assignment, it will make you think. I think you are confusing reference operators with pointers. Were I...
package others; public class AddTwoNumbers { private static int myAdd(int a, int b) { int carry = a & b; int result = a ^ b; while(carry != 0) { int shiftedcarry = carry << 1; carry =...
not 100% sure if this is what you are asking for but here it goes. you have a number 11110000 (binary) and you want 00001111 (binary)? you want to use the xor operator ^ value = 0xf0; //11110000...