As the functions names explain:
parseDouble passes a string as parameter and returns a double from it. For example if the string is "123" it returns a double 123. So simply take a numeric string and return it as double.

But toString returns a string from a double:
Oracle docs have the info for that: Double Class