Java Double Parse tryParseDouble(String doubleValue)

Here you can find the source of tryParseDouble(String doubleValue)

Description

try Parse Double

License

Open Source License

Declaration

private static Object tryParseDouble(String doubleValue) 

Method Source Code

//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;
    }
}

Related

  1. tryParseDouble(Object o)
  2. tryParseDouble(Object obj, Double defaultVal)
  3. tryParseDouble(String value)
  4. tryParseDouble(String value)