Java Boolean to String booleanToString1(boolean bool)

Here you can find the source of booleanToString1(boolean bool)

Description

boolean To String

License

Open Source License

Declaration

public static String booleanToString1(boolean bool) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String booleanToString1(boolean bool) {
        String result = "false";
        if (bool) {
            result = "true";
        }//w  w  w .j  a  va2 s  .  c o  m
        return result;
    }
}

Related

  1. booleanToString(boolean value)
  2. booleanToSTRING(boolean value)
  3. booleanToString(boolean value)
  4. booleanToString(boolean[] values)
  5. booleanToString(String boolVal)
  6. booleanToString_1(String str)
  7. boolToStr(Boolean value)
  8. boolToString(boolean x)
  9. boolToString(final boolean b)