private Double toDouble(String numStr){
  try {
    return new Double(numStr);
  }
 catch (  Exception e) {
    return null;
  }
}

private Double toDouble ( String numStr ) { try { return new Double ( numStr ) ; } catch ( Exception e ) { return null ; } }
convert string to double
