Next Double from a String

I have used a Scanner Object before to read doubles from an input, but how do I get the Next double from a String?

Used this in the past:

Scanner input =new Scanner(System.in);

double num = input.nextDouble();

I am looking for something like this:

String example ="100.00";

double num = example.nextDouble();

Any suggestions?

[500 byte] By [climbjm2a] at [2007-11-26 17:14:21]
# 1
Specifically a String like this "50.05text", where it will drop the "text" part. and only return 50.05.
climbjm2a at 2007-7-8 23:42:19 > top of Java-index,Other Topics,Algorithms...
# 2
I posted this in the wrong forum. For some reason, I thought I was still in the New to Java Forum. Go here: http://forum.java.sun.com/thread.jspa?threadID=5132463
climbjm2a at 2007-7-8 23:42:19 > top of Java-index,Other Topics,Algorithms...