SyntaxFix
Write A Post
Hire A Developer
Questions
Google's Guava library provides a nice helper method to do this: Doubles.tryParse(String). You use it like Double.parseDouble but it returns null rather than throwing an exception if the string does not parse to a double.
Doubles.tryParse(String)
Double.parseDouble
null