Java Integer Create toInteger(String pString)

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

Description

to Integer

License

Open Source License

Declaration

public static final int toInteger(String pString) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final int toInteger(String pString) {
        try {//w  ww .j  a  v  a 2  s .co  m
            return Integer.parseInt(pString);
        } catch (NumberFormatException e) {
            return Integer.MIN_VALUE;
        }
    }
}

Related

  1. toInteger(Object x)
  2. toInteger(String ascii)
  3. toInteger(String integer)
  4. toInteger(String numeric)
  5. toInteger(String numericString)
  6. ToInteger(String s)
  7. toInteger(String s)
  8. toInteger(String s)
  9. toInteger(String s, int defValue)