Java Integer Create toInt(String value, int _default)

Here you can find the source of toInt(String value, int _default)

Description

to Int

License

Apache License

Declaration

public static int toInt(String value, int _default) 

Method Source Code

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

public class Main {
    public static int toInt(String value, int _default) {
        if (value == null || value.length() == 0)
            return _default;
        return Integer.valueOf(value);
    }//ww w  .j av  a 2s  .  co  m
}

Related

  1. toInt(String value)
  2. toInt(String value)
  3. toInt(String value)
  4. toInt(String value)
  5. toInt(String value)
  6. toInt(String value, int def)
  7. toInt(String value, int defaultValue)
  8. toInt(String value, int defaultValue)
  9. toInt(String value, int defaultValue)