java.lang.Double.parseDouble() java.lang.Double.longValue() java.lang.Double.shortValue() java.lang.Double.parseDouble() package com.codingdict; import java.lang.*; public class DoubleDemo { public static void main(String[] args) { Double d = new Double("6.35"); // returns the double value represented by the string argument String str = "50"; double retval = d.parseDouble(str); System.out.println("Value = " + retval); } } java.lang.Double.longValue() java.lang.Double.shortValue()