How to convert Boolean object into String object in Java

1 Answer

0 votes
package javaapplication1;

public class JavaApplication1 {
 
    public static void main(String[] args) {
  
        Boolean bObj = Boolean.valueOf("true");

        String s = bObj.toString();
        System.out.println(s);
    }
}
 
/*
    
run:

true

*/

 



answered Nov 4, 2016 by avibootz

Related questions

1 answer 178 views
1 answer 177 views
1 answer 147 views
1 answer 198 views
3 answers 260 views
1 answer 217 views
1 answer 163 views
...