question: public static Double asDouble ( String str ) { try { return Double . valueOf ( str ) ; } catch ( NumberFormatException e ) { return null ; } }
target:  Parse string to double, if string can't be parsed to double, then it will return null.