public class JavaBooleanTobooleanExample
{
public static void main(String[] args)
{
//Construct a Boolean object.
Boolean blnObj = new Boolean("true");
//use booleanValue of Boolean class to convert it into boolean primitive
boolean b = blnObj.booleanValue();
System.out.println(b);
}
}
Convert Boolean Object to boolean primitive exmaple JAVA
Reviewed by
Abdul hanan
on
10:00:00
Rating:
5
No comments: