Here you can find the source of tryParseDouble(String value)
Parameter | Description |
---|---|
value | a parameter |
public static Double tryParseDouble(String value)
//package com.java2s; //License from project: Open Source License public class Main { /**//w w w.j a va 2s . c om * Try to parse the string as double or return null if failed * * @param value * @return */ public static Double tryParseDouble(String value) { try { return Double.parseDouble(value); } catch (NumberFormatException e) { return null; } } }