Converting string "s" to binary : <pre><code>public class test1 {
String testVar = "s";
String binary;
int decimal;

public test1()
{
    decimal = Integer.parseInt(testVar.trim(), 16 );
    System.out.println(decimal);
}
</code></pre>

<p>here is my code, It seems that this works with other letters but when its an string value "s", Error shows up</p>

<blockquote>
  <p>Exception in thread "main" java.lang.NumberFormatException: For input string: "s"</p>
</blockquote>
