Here you can find the source of getBool(String str, boolean b)
public static boolean getBool(String str, boolean b)
//package com.java2s; public class Main { public static boolean getBool(String str, boolean b) { return null != str && str.equalsIgnoreCase("true") ? true : false; }/* ww w . jav a 2 s . c om*/ }