Here you can find the source of toHexString(final int value)
Parameter | Description |
---|---|
value | the integer value |
public static String toHexString(final int value)
//package com.java2s; public class Main { /**/*w w w.j a v a2 s .c o m*/ * Returns a string representation of the integer argument as an * unsigned integer in base 16. The string will be uppercase * and will have a leading '0x'. * * @param value the integer value * * @return the hex string representation */ public static String toHexString(final int value) { return "0x" + Integer.toHexString(value).toUpperCase(); } }