Boolean: boolean booleanValue() (Returns the value of this Boolean object as a boolean primitive) : Boolean « java.lang « Java by API
- Java by API
- java.lang
- Boolean
Boolean: boolean booleanValue() (Returns the value of this Boolean object as a boolean primitive)
public class Main {
public static void main(String[] args) {
Boolean b1 = new Boolean(false);
Boolean b2 = new Boolean("true");
System.out.println(b1.booleanValue());
System.out.println(b2.booleanValue());
}
}
Related examples in the same category