title: How to check if String value is Boolean type in Java?
body: <p>I did a little search on this but couldn't find anything useful.</p>
  
  <p>The point being that if String value is either "true" or "false" the return value should be true. In every other value it should be false.</p>
  
  <p>I tried these:</p>
  
  <pre><code>String value = "false";
  System.out.println("test1: " + Boolean.parseBoolean(value));
  System.out.println("test2: " + Boolean.valueOf(value));
  System.out.println("test3: " + Boolean.getBoolean(value));
  </code></pre>
  
  <p>All functions returned false :(</p>