Double.toHexString(double d) has the following syntax.
public static String toHexString(double d)
In the following code shows how to use Double.toHexString(double d) method.
public class Main { public static void main(String[] args) { System.out.println(Double.toHexString(1.2)); } }
The output: