How to get the 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.00Degrees";

double num = example.nextDouble();

// num now equals 100.00

Any suggestions?

[569 byte] By [climbjm2a] at [2007-11-26 17:14:23]
# 1
There is a Scanner constructor that takes a String as a parameter.
CaptainMorgan08a at 2007-7-8 23:42:20 > top of Java-index,Java Essentials,New To Java...
# 2
Awesome! I did not know I could use Scanner that way, thanks! I thought I could only use it with System.in!
climbjm2a at 2007-7-8 23:42:20 > top of Java-index,Java Essentials,New To Java...