Java Program Example to Convert Boolean Object to boolean primitive
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);
No comments:
Post a Comment