Java Boolean Convert to booleanToStr(boolean bool)

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

Description

boolean To Str

License

BSD License

Declaration

public static String booleanToStr(boolean bool) 

Method Source Code

//package com.java2s;
/*L// w w w .java 2 s.  c o  m
 * Copyright Oracle Inc, SAIC-F
 *
 * Distributed under the OSI-approved BSD 3-Clause License.
 * See http://ncip.github.com/cadsr-uml-model-browser/LICENSE.txt for details.
 */

public class Main {
    public static String booleanToStr(boolean bool) {
        if (bool) {
            return "Yes";
        } else {
            return "No";
        }
    }
}

Related

  1. booleanArrayToString(boolean[] array)
  2. booleanArrayToString(boolean[] b, String delim)
  3. booleanArrayToString(boolean[] ba)
  4. booleanToBasicType(boolean b, Class clazz)
  5. booleanToDouble(boolean b)
  6. booleanToTinyInt(boolean b)
  7. booleanToYesNo(Boolean b)
  8. boolToNum(Boolean bool)
  9. BoolToNum(boolean bool)