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 259 views
1 answer 252 views
1 answer 216 views
1 answer 296 views
3 answers 415 views
1 answer 292 views
1 answer 239 views
...