Use booleanValue of Boolean class to convert it into boolean primitive : StringBuffer « Development Class « Java
- Java
- Development Class
- StringBuffer
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
Related examples in the same category