Android String to Int Convert toInteger(String value)

Here you can find the source of toInteger(String value)

Description

to Integer

License

Open Source License

Declaration

public final static int toInteger(String value) 

Method Source Code


public class Main{
    public final static int toInteger(String value) {
        try {/*from   ww w  .  j av  a  2s.c  om*/
            return Integer.parseInt(value);
        } catch (Exception e) {
            Debug.warning(e);
        }
        return 0;
    }
}

Related

  1. isNumberic(String str)
  2. toInt(Object obj)
  3. toInt(String obj)
  4. toInt(String str, int defValue)
  5. toInt(String str, int defValue)
  6. toNumber(String str)
  7. amount2String(String amount)
  8. String2Int(String str)
  9. string2Int(String str)