Convert to primitive boolean value

booleanbooleanValue()Returns the value as a boolean primitive.

public class Main {
    public static void main(String[] args) {
       Boolean boolean1 = new Boolean("true");


The output:

true  |  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.