Archived

This topic is now archived and is closed to further replies.

CHollman82

Java method ParseDouble

Recommended Posts

Does not seem to exist??? When I try to use it I get this error message: D:\Java\Bank Acount\AccountDriver.java:59: Method parseDouble(java.lang.String) not found in class java.lang.Double. newAcc = Double.parseDouble(input); I''ve tried reinstalling the SDK but it doesn''t help, any suggestions

Share this post


Link to post
Share on other sites
It should exist. Otherwise you could try Double.valueOf(input).doubleValue(); or FloatingDecimal.readJavaFormatString(input).doubleValue();, which is what Double.parseDouble() does anyway.

Enigma

Share this post


Link to post
Share on other sites