how to convert int to hecideceimla java code example Example: convert int to hex java int integer = 18; String hexString = Integer.toHexString(integer);