add two numbers bitwise
Java
public class Bitwise_Addition{
int add(int a, int b){
int c;
while(b!=0){
c=a&b;
a=a^b;
b=c<<1;
}
return a;
}
}
Also in Java:
- Title
- error message pushes button down
- Category
- Java
- Title
- init cap java
- Category
- Java
- Title
- simple javascript to detect browser using java utils
- Category
- Java
- Title
- java command line arguments
- Category
- Java
- Title
- ndroid.support.v4.content.FileProvider
- Category
- Java
- Title
- write an object java in a file
- Category
- Java
- Title
- reverse linked list in java to get both head and tail
- Category
- Java
- Title
- java square a number
- Category
- Java
- Title
- java remove non numbers from string
- Category
- Java
- Title
- java queue
- Category
- Java
- Title
- java manacher's algorithm
- Category
- Java
- Title
- how-to-use-volley-string-request-in-android
- Category
- Java
- Title
- how to create an array of arraylist in java
- Category
- Java
- Title
- binary to int java
- Category
- Java
- Title
- shortcut to find a class in java project eclipse
- Category
- Java
- Title
- imagesbutton how to set background
- Category
- Java
- Title
- multiple string java
- Category
- Java
- Title
- java list contains object with property
- Category
- Java
- Title
- set preference value android
- Category
- Java
- Title
- java bigdecimal compareto
- Category
- Java
- Title
- java list get first element
- Category
- Java
- Title
- get last element of array java
- Category
- Java
- Title
- how to make a char uppercase in java
- Category
- Java
- Title
- java how to print an array
- Category
- Java
- Title
- java prev_permutation
- Category
- Java
- Title
- if statement java
- Category
- Java
- Title
- how to compare two maps in java
- Category
- Java
- Title
- countdown timer with seekbar
- Category
- Java
- Title
- java not instanceof
- Category
- Java
- Title
- number to string java
- Category
- Java
- Title
- caesar cipher java
- Category
- Java
- Title
- removeeventlistener
- Category
- Java
- Title
- java hashmap get value
- Category
- Java
- Title
- properties java 8 maven in pom xml
- Category
- Java
- Title
- jframe border
- Category
- Java
- Title
- how to remove all components from layeredPane java
- Category
- Java
- Title
- round no in java
- Category
- Java
- Title
- absolute value in java
- Category
- Java
- Title
- java program to get all cat indices in elasticsearch javadoc
- Category
- Java
- Title
- para que sirve getcontentpane en java
- Category
- Java
- Title
- java creare costante
- Category
- Java
- Title
- how to get a user input in java
- Category
- Java
- Title
- height constraint layout guideline
- Category
- Java
- Title
- how to detect device javascirpt
- Category
- Java
- Title
- how to use spring in java
- Category
- Java
- Title
- how to create a Rectangle in java
- Category
- Java
- Title
- declare String in java
- Category
- Java
- Title
- Java copy file
- Category
- Java
- Title
- 2d array java
- Category
- Java
- Title
- diagonal difference hackerrank solution in java 8 using list
- Category
- Java
- Title
- Java.awt graphics tutorial
- Category
- Java
- Title
- convert char to string java
- Category
- Java
- Title
- string to arraylist convert java
- Category
- Java
- Title
- convert array to list java
- Category
- Java
- Title
- java execute for cycle parallel thread
- Category
- Java
- Title
- read from elasticsearch in spark
- Category
- Java
- Title
- java getter
- Category
- Java
- Title
- java arraylist in enum
- Category
- Java
- Title
- writing to a text file java
- Category
- Java
- Title
- how to open a folder in java swing project
- Category
- Java
- Title
- abstraction in java
- Category
- Java
- Title
- sort a map based on keys and values using java 8
- Category
- Java
- Title
- 2d arrays | java
- Category
- Java
- Title
- java replace all xml decoding
- Category
- Java
- Title
- read integer input java
- Category
- Java
- Title
- java sql question mark
- Category
- Java
- Title
- how to check type of primitive value in java
- Category
- Java
- Title
- java check if int
- Category
- Java
- Title
- java uuid
- Category
- Java
- Title
- official java website
- Category
- Java
- Title
- java call another constructor
- Category
- Java
- Title
- processing audio android
- Category
- Java
- Title
- fibonacci sequence in java recursion
- Category
- Java
- Title
- java loop through array
- Category
- Java
- Title
- how to count an replace substring string in java
- Category
- Java
- Title
- j
- Category
- Java
- Title
- convert array of int to arraylist java
- Category
- Java
- Title
- how to parse a string into a number in java
- Category
- Java
- Title
- enum with numbers java
- Category
- Java
- Title
- spigot sounds
- Category
- Java
- Title
- has places api got deprecated???
- Category
- Java
- Title
- how to find complement of a number in java
- Category
- Java
- Title
- java new string with values
- Category
- Java
- Title
- get current day java
- Category
- Java
- Title
- java string format .2f
- Category
- Java
- Title
- java override equals and hashcode
- Category
- Java
- Title
- object orientation in java
- Category
- Java
- Title
- java script to detect the crome browser
- Category
- Java
- Title
- web app runtime for java
- Category
- Java
- Title
- java go troght loop object
- Category
- Java
- Title
- android hide and show bottom navigation
- Category
- Java
- Title
- how to create an abstract class in java
- Category
- Java
- Title
- how to iterate hashmap in java
- Category
- Java
- Title
- ceil function in java
- Category
- Java
- Title
- converter int array para string java
- Category
- Java
- Title
- retrofit
- Category
- Java
- Title
- java calendar add minutes
- Category
- Java
- Title
- how to echo java_home in windows cmd
- Category
- Java
- Title
- pascals triangle java
- Category
- Java
- Title
- type javascirpt
- Category
- Java