Here you can find the source of toInt(String obj)
public static int toInt(String obj)
//package com.java2s; public class Main { public static int toInt(String obj) { try {//from w w w. ja v a 2 s. co m return Integer.parseInt(obj); } catch (Exception e) { } return 0; } }