Here you can find the source of getIntValue(String str)
public static int getIntValue(String str)
//package com.java2s; public class Main { public static int getIntValue(String str) { if (str != null && str.length() > 0) { try { return Integer.parseInt(str); } catch (Exception e) { }/*from w w w. jav a 2s.c o m*/ } return 0; } }