String.valueOfBoolean()

Signature

String valueOfBoolean (boolean b)

Domain

action, condition

Description

Returns a String representation of the boolean passed in.

Parameters

NameTypeDescription
bbooleanA boolean to get the value of (convert to String).

Returns

TypeDescription
StringA String representation of the boolean passed in.

Cautions

none

Example


String result = String.valueOfBoolean (true);

Result is:
result contains: "true"