Integer: toHexString(int intValue) : Integer « java.lang « Java by API
- Java by API
- java.lang
- Integer
Integer: toHexString(int intValue)
/*
* Output:
Hex is b
*/
public class MainClass {
public static void main(String args[]) {
int i = 11;
System.out.println("Hex is " + Integer.toHexString(i));
}
}
Related examples in the same category