Mega Code Archive

 
Categories / Java / Data Type
 

Use toString method of Boolean class to convert it into String

public class Main {   public static void main(String[] args) {     Boolean blnObj = new Boolean("true");     System.out.println(blnObj.toString());   } }