Search
 
SCRIPT & CODE EXAMPLE
 

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);
   }
}
Comment

PREVIOUS NEXT
Code Example
Java :: Java create an object of the non-static class Reptile 
Java :: hanoi recursive algorithm 
Java :: for loop optimized java 
Java :: format string precision double java 
Java :: SPOJ Prime1 
Java :: java object class 
Java :: java scanner class time 
Java :: java get current free disc space 
Java :: cgange background from button click java fx 
Java :: string equlity 
Java :: num1 * num2 
Java :: mincraft command in plugin 
Java :: java hashmap get nonexistent key 
Java :: android bootom app bar tab bar 
Java :: ternario java 
Java :: re-loop after last item in array java 
Java :: localdatetimw java input 
Java :: Add space to the left and right sides of a cell 
Java :: java scanner equation 
Java :: findng and replacing duplicate values in an array 
Java :: how to get single value from input string in java 
Java :: javafx how to put multiple handlers in the same line 
Java :: Error: Unable to export or encrypt the private key java.lang.NullPointerException 
Java :: setUndecorated java 
Java :: How to handle exception if message lost during publishing to kafka 
Java :: What Is Spring Boot and What Are Its Main Features? 
Java :: Java Catching base and child exception classes 
Java :: how to create gravity in Java 
Java :: for each loop summation 
Java :: val kotlin to Java 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =