thanks. this code work fine, aca is carry, i forget to change it
thank you for the answer
Type: Posts; User: omatoe
thanks. this code work fine, aca is carry, i forget to change it
thank you for the answer
public void addBinary(String a, String b) throws IOException{
StringBuilder sb = new StringBuilder();
int i=a.length()-1,j= b.length()-1, carry = 0;
while (i>=0 || j>=0){
...