Convert Boolean to boolean value


class MainClass {
  public static void main(String[] args) {
    boolean b = true;
    Boolean b2 = new Boolean(b);
    System.out.println(b2.booleanValue());
  }
}
Home 
  Java Book 
    Runnable examples  

Data Type Boolean:
  1. Create Boolean from boolean value
  2. Convert Boolean to boolean value
  3. Convert Boolean to String