x This domain is for sale. If you intrested, Please contact : webspeckle@gmail.com

Convert Boolean to string in Java

By using Boolean.toString() this method to covert Boolean to string in Java. This method accepts the boolean argument and converts it into an equivalent String value.

boolean status = false;
String str = Boolean.toString(status);
System.out.println("String value of 'status' is: "+str);

No comments:

Post a Comment