public static String int2msg(final int number) {
    return number + " (0x" + Long.toHexString((long) number & 0xFFFFFFFFL).toUpperCase(Locale.ENGLISH) + ')';
  }
public static String int2msg ( final int number ) { return number + " (0x" + Long . toHexString ( ( long ) number & 0xFFFFFFFFL ) . toUpperCase ( Locale . ENGLISH ) + ')' ; }
Convert an integer number into human readable hexadecimal format.

@param number a number to be converted
@return a string with human readable hexadecimal number representation