| Constructor | Summary |
|---|---|
| Boolean(boolean value) | Creates a Boolean object for value. |
| Boolean(String s) | Creates a Boolean object true value for string "true" igoring case. |
public class Main {
public static void main(String[] args) {
Boolean boolean1 = new Boolean("true");
System.out.println(boolean1);
Boolean boolean2 = new Boolean(true);
System.out.println(boolean2);
}
}
The output:
true
true| ww__w_.___j_a_v_a_2s__.__com__ | Contact Us |
| Copyright 2009 - 12 Demo Source and Support. All rights reserved. |
| All other trademarks are property of their respective owners. |