Android String to Boolean Convert toBool(String b)

Here you can find the source of toBool(String b)

Description

to Bool

Declaration

public static boolean toBool(String b) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean toBool(String b) {
        try {/*  w  w w  .j a  va2  s .  c  o m*/
            return Boolean.parseBoolean(b);
        } catch (Exception e) {
        }
        return false;
    }
}

Related

  1. getValueOrDefault(String s, String s1)
  2. toBool(String str)
  3. toBoolean(final String value)
  4. getBool(String str, boolean b)
  5. getBooleanValue(String string)
  6. isTextBoolean(String texto)
  7. parseBoolean(String string)