Java tutorial
//package com.java2s; public class Main { public static double getDouble(String text) { try { return Double.valueOf(text); } catch (Exception e) { } return 0; } }