I would like to know how to parse several double numbers from a string, but string can be mixed, for instance: String s = \"text 3.454 sometext5.567568more_text\"
Parse out the substring (surrounded by whitespace)
Use String.ParseDouble() to get the numeric value
Here's one example, using "split()" to parse (there are many alternatives):
// http://pages.cs.wisc.edu/~hasti/cs302/examples/Parsing/parseString.html
String phrase = "the music made it hard to concentrate";
String delims = "[ ]+";
String[] tokens = phrase.split(delims);
Here's a second alternative:
Java: how to parse double from regex