Hi, unless the doubleValue method is defined somewhere else, I suggest the code given in your textbook example is a typo. It probably should read something like:
where you use the valueOf method to return a Double object, tempValue, then you call its doubleValue() method to return a double primitive. However the examples already posted above by others using the static parseDouble(String s) method would probably work more efficiently. Happy Coding! Dun Dagda
SCJP 1.4<br />SCWCD (in progress)
I think he's gonna try to grab my monkey. Do we have a monkey outfit for this tiny ad?