Java Boolean From toBoolean(String str)

Here you can find the source of toBoolean(String str)

Description

to Boolean

License

Apache License

Declaration

public static Boolean toBoolean(String str) 

Method Source Code

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

public class Main {

    public static Boolean toBoolean(String str) {
        try {/* ww  w .j a va  2 s . c o m*/
            return Boolean.parseBoolean(str);
        } catch (Throwable e) {
            return null;
        }
    }
}

Related

  1. toBoolean(String propertyValue)
  2. toBoolean(String s)
  3. toBoolean(String s)
  4. toBoolean(String str)
  5. toBoolean(String str)
  6. toBoolean(String str)
  7. toBoolean(String string)
  8. toBoolean(String string)
  9. toBoolean(String string, boolean defaultValue)