Search:

Type: Posts; User: omatoe

Search: Search took 0.07 seconds.

  1. Replies
    3
    Views
    886

    Re: anyone can tell me how this code works?

    thanks. this code work fine, aca is carry, i forget to change it
    thank you for the answer
  2. Replies
    3
    Views
    886

    anyone can tell me how this code works?

    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){
    ...
Results 1 to 2 of 2