java.lang.Double.toHexString() java.lang.Double.shortValue() java.lang.Double.toString() java.lang.Double.toHexString() package com.codingdict; import java.lang.*; public class DoubleDemo { public static void main(String[] args) { Double d = new Double("4.0"); /* returns a hexadecimal string representation of the double argument */ String str = d.toHexString(1.0); System.out.println("Hex String = " + str); str = d.toHexString(3.0); System.out.println("Hex String = " + str); str = d.toHexString(0.25); System.out.println("Hex String = " + str); str = d.toHexString(Double.MAX_VALUE); System.out.println("Hex String = " + str); } } java.lang.Double.shortValue() java.lang.Double.toString()