Here you can find the source of toInteger(Object _inStrObj)
public static int toInteger(Object _inStrObj)
//package com.java2s; public class Main { public static int toInteger(Object _inStrObj) { if (_inStrObj == null || _inStrObj.toString().trim().equals("")) { return 0; } else {/*from w w w .ja va 2s .c o m*/ return new Integer(_inStrObj.toString()).intValue(); } } }