Unregistered
09-18-2005, 06:41 PM
Hello to anyone who's reading this! I'm new to java, but so far everything's been okay... except this. My program is telling me that "parseDouble" does not exist. I'm not going to show the whole program because it's 100 lines long, so just look at this:
String input2;
double r;
input2 = txtThird.getText ();
r = Double.parseDouble (input2);
Yes, txtThird does exist it's just too far up in the program. If i use "r = Integer.parseInt (input2);" it works, but what i'm writing requires double. I've checked some sites and parseDouble should exist. What's going on?
String input2;
double r;
input2 = txtThird.getText ();
r = Double.parseDouble (input2);
Yes, txtThird does exist it's just too far up in the program. If i use "r = Integer.parseInt (input2);" it works, but what i'm writing requires double. I've checked some sites and parseDouble should exist. What's going on?