Java Boolean to String boolToString(boolean x)

Here you can find the source of boolToString(boolean x)

Description

bool To String

License

Apache License

Declaration

public static String boolToString(boolean x) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String boolToString(boolean x) {
        if (x)/*from   w  w w . ja  v  a  2  s  . c o m*/
            return "true";
        else
            return "false";
    }
}

Related

  1. booleanToString(boolean[] values)
  2. booleanToString(String boolVal)
  3. booleanToString1(boolean bool)
  4. booleanToString_1(String str)
  5. boolToStr(Boolean value)
  6. boolToString(final boolean b)
  7. BoolToStringEx(Boolean bValue)
  8. convertBooleanToString(boolean flag)
  9. convertBooleanToString(Integer booleanValue)