Here you can find the source of tryParseInteger(String intValue)
private static Object tryParseInteger(String intValue)
//package com.java2s; //License from project: Open Source License public class Main { private static Object tryParseInteger(String intValue) { Object parsedValue;/*w w w. jav a 2 s. c om*/ try { parsedValue = Integer.parseInt(intValue); } catch (NumberFormatException nfe) { parsedValue = intValue; } return parsedValue; } }