I\'m trying to convert a number from an integer into an another integer which, if printed in hex, would look the same as the original integer.
For example:
C
Simply do this:
public static int specialNum(num){ return Integer.parseInt( Integer.toString(num) ,16) }
It should convert any special decimal integer to its hexadecimal counterpart.