title: Hex to binary conversion java
body: <p>I have the following code</p>
  
  <pre><code>temp = "0x00"
  String binAddr = Integer.toBinaryString(Integer.parseInt(temp, 16)); 
  </code></pre>
  
  <p>Why do I get the following error:</p>
  
  <p><code>Exception in thread "AWT-EventQueue-0" java.lang.NumberFormatException: For input string: "0x00"</code></p>