Boolean: String toString() : Boolean « java.lang « Java by API






Boolean: String toString()

   


public class Main {

  public static void main(String[] args) {
    Boolean b = Boolean.valueOf("true");
    System.out.println(b.toString());
  }

}

   
    
    
  








Related examples in the same category

1.new Boolean(boolean value)
2.new Boolean(String s)
3.Boolean: boolean booleanValue() (Returns the value of this Boolean object as a boolean primitive)
4.Boolean: parseBoolean(String s)
5.Boolean: valueOf(String stringValue)