Read post #2. It gives methods for going each way.
Look at the String class for methods to create Strings.
Look at the Double class for methods to create doubles.
Read the API doc for these...