Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android java convert boolean to string

public class Demo {
   public static void main(String[] args) {
      boolean bool1 = false;
      boolean bool2 = true;
      String str1 = new Boolean(bool1).toString();
      String str2 = new Boolean(bool2).toString();
      System.out.println(str1);
      System.out.println(str2);
   }
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #android #java #convert #boolean #string
ADD COMMENT
Topic
Name
4+6 =