Here you can find the source of parseInt(String stringValue)
public static int parseInt(String stringValue) throws ParseException
//package com.java2s; //License from project: Apache License import java.text.NumberFormat; import java.text.ParseException; public class Main { public static int parseInt(String stringValue) throws ParseException { return parseNumber(stringValue).intValue(); }//from w w w .j a va 2 s. co m public static Number parseNumber(String stringValue) throws ParseException { NumberFormat numberFormat = NumberFormat.getInstance(); return numberFormat.parse(stringValue); } }