Archived

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

CHollman82

Java method ParseDouble

Recommended Posts

CHollman82    100
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
gamefan    122
well this is actualy my prob chollman just posted for me,

uhh im usings 1.4.1 i dono why it wont work

Integer.parseInt works fine but i need negatives and decmals and big nums

Share this post


Link to post
Share on other sites
Enigma    1410
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