Take a look at :
String (Java Platform SE 6)
and
Double (Java 2 Platform SE v1.4.2)

Here's an small example



try{