Latest Tutorials| Questions and Answers|Ask Questions?|Site Map

Home Java Java-conversion Converting Boolean to String

Related Tutorials


Share on Google+Share on Google+

Converting Boolean to String

In this tutorial we are going to convert Boolean to String.

Converting Boolean to String

In this section we will discuss about how to convert boolean to String type. This example show you how to convert boolean type to string type. String class provide valueOf() method which is inside java.lang.String package which convert the value into String type.

public class BooleanToString 
	public static void main(String args[])
		Boolean b=false;
		String str=String.valueOf(b);


In the program, valueOf() method of String class is taking boolean type of data and converting into String type which prints the string value.

If you enjoyed this post then why not add us on Google+? Add us to your Circles

Liked it!  Share this Tutorial

Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 18, 2013

Related Tutorials

Discuss: Converting Boolean to String  

Post your Comment

Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image