Java Double Number Create toDouble(String str)

Here you can find the source of toDouble(String str)

Description

to Double

License

Open Source License

Declaration

public static Double toDouble(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static Double toDouble(String str) {
        Double rtn = null;/* w  ww . j a va 2  s.co  m*/
        if (str != null) {
            try {
                rtn = new Double(str);
            } catch (NumberFormatException e) {
                rtn = null;
            }
        }
        return rtn;
    }
}

Related

  1. toDouble(String parameter)
  2. toDouble(String s)
  3. toDouble(String s)
  4. toDouble(String s)
  5. toDouble(String s)
  6. toDouble(String str)
  7. toDouble(String str)
  8. toDouble(String str)
  9. toDouble(String str)