Here you can find the source of toInt(String str)
public static Integer toInt(String str)
//package com.java2s; //License from project: Apache License public class Main { public static Integer toInt(String str) { return Integer.parseInt(str); }/*from w ww . j av a2 s . c o m*/ }