Here you can find the source of tryParseDouble(String doubleValue)
private static Object tryParseDouble(String doubleValue)
//package com.java2s; //License from project: Open Source License public class Main { private static Object tryParseDouble(String doubleValue) { Object parsedValue;//from www .j a va 2 s . co m try { parsedValue = Double.parseDouble(doubleValue); } catch (NumberFormatException nfe) { parsedValue = doubleValue; } return parsedValue; } }