double m=new Double.parseDouble(str1);
parseDouble()返回的是double值,不是对象,不用new。从另一个方面来讲,你定义的m也是double,不用new的。

解决方案 »

  1.   

    1:System.getProperties() returns a Properties not a String. You should use getProperty() instead.Otherwise you call getProperties() to get all the properties you wanted, the returned value is an array of Property. Then use the returned Property to get the String value through get method(Property extends from hashtable). 
    2:Double.parseDouble() is a static method, so your syntax is wrong. You just use double m = Double.parseDouble() directly.