Here you can find the source of toBool(String bStr)
public static boolean toBool(String bStr)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean toBool(String bStr) { if (bStr != null) { return Boolean.parseBoolean(bStr); }/*from ww w . j a v a2s .co m*/ return false; } }