Java String to Boolean atob(final String str, final boolean def)

Here you can find the source of atob(final String str, final boolean def)

Description

atob

License

Open Source License

Declaration

public static boolean atob(final String str, final boolean def) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean atob(final String str, final boolean def) {
        try {//from   w w  w .  j  av a2  s  .c om
            return Boolean.parseBoolean(str);
        } catch (final Exception ex) {
            ex.printStackTrace();
        }
        return def;
    }
}

Related

  1. asBoolean(String s)
  2. asBoolean(String str)
  3. asBoolean(String string)
  4. asBoolean(String value)
  5. asBoolean(String value, boolean defaultValue)
  6. atob(String pString_)
  7. atob(String s)
  8. atob(String s)
  9. convertStringToBoolean(String pValue)