I am trying to convert boolean to string type...
Boolean b = true; String str = String.valueOf(b);
or
Boolean b = true; Str
If this is for the purpose of getting a constant "true" value, rather than "True" or "TRUE", you can use this:
Boolean.TRUE.toString(); Boolean.FALSE.toString();