Here you can find the source of booleanValue(String tfString)
public static boolean booleanValue(String tfString)
//package com.java2s; public class Main { public static boolean booleanValue(String tfString) { String trimmed = tfString.trim().toLowerCase(); return trimmed.equals("true") || trimmed.equals("t"); }/*from www. j a v a 2s . c om*/ }