title: Converting String binary to integer
body: <p>How can I do this without using multiplication, division or mod?</p>
  
  <p>I come with the solution but it needs multiplication.</p>
  
  <pre><code>public StringBToInt(String b) {
      int value = 0;
      for(int z = 0; z &lt; b.length(); z++) {
          value = value * 2 + (int)b.charAt(i) - 48;
      }
  }
  </code></pre>
  
  <p>EDIT: SORRY! Only 3 java API are allowed. length(), charAt(), and equals()</p>