Hey I found the easiest way I think:
String s = String.valueOf( boolean );
The advantages of this approach are:
* You can use the exact same code for any type, as the method is overloaded to cover them all.
* If passing a reference type, you don't need to check for null first. This method does it for you, and gives "null" if the reference is null. Note that this may actually not be an advantage. There may be times when it is incorrect for the value to be null. In these cases, it'd be better to get the NullPointerException than to have the string "null" when you expected a real value. However, in these cases, that reference will probably be used for other things, so the NPE will probably occur shortly before or after this line anyway. Just something to be aware of.