title: How to convert binary string value to decimal
body: <p>How to convert a binary String such as</p>
  
  <pre><code>String c = "110010"; // as binary
  </code></pre>
  
  <p>to the value in decimal in Java? (expected result in the example is 50)</p>