Here you can find the source of toInteger(String pString)
public static final int toInteger(String pString)
//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; } } }