Mega Code Archive
Use booleanValue of Boolean class to convert it into boolean primitive
public class Main {
public static void main(String[] args) {
Boolean blnObj = new Boolean("true");
boolean b = blnObj.booleanValue();
System.out.println(b);
}
}
//true