Java String to Boolean convertStringToBoolean(String string)

Here you can find the source of convertStringToBoolean(String string)

Description

convert String To Boolean

License

Apache License

Declaration

public static boolean convertStringToBoolean(String string) 

Method Source Code

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

public class Main {
    public static boolean convertStringToBoolean(String string) {
        if (string.equals("true")) {
            return true;
        } else {/*from  ww w  . j  a v a 2 s.c o  m*/
            return false;
        }
    }
}

Related

  1. atob(String pString_)
  2. atob(String s)
  3. atob(String s)
  4. convertStringToBoolean(String pValue)
  5. convertStringToBoolean(String strBoolean)
  6. convertStringToBoolean(String string)
  7. stringToBoolean(String expr)
  8. stringToBooleanArray(String string, String delim)