illegal start of expression

HIIm guetting an illegal start of expression with the following double x= (double).parseDouble(s);s is a string , any one has a clue ?Thanks
[182 byte] By [veroknotta] at [2007-10-2 14:56:42]
# 1

double x= (double).parseDouble(s);

This line does not make sense. double is a primitive and you can not call a method (aka dereference) a primitive. You probably meandouble x= Double.parseDouble(s);

The API is your friend.

atmguya at 2007-7-13 13:39:32 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...