Online Java Compiler By
JavaTpoint.com
public class IntegerToHexStringExample1 { public static void main(String[] args) { int i = 975; System.out.println("Number = " + i); //returns the string representation of the integer value in HexaDecimal format System.out.println("HexaDecimal representation is = "+ Integer.toHexString(i).toUpperCase()); } }
Output