public static java.lang.String toHexString(int i){
  return intToHexString(i,0);
}

public static java . lang . String toHexString ( int i ) { return intToHexString ( i , 0 ) ; }
creates a string representation of the integer argument as an unsigned integer in base 16 . the unsigned integer value is the argument plus 232 if the argument is negative ; otherwise , it is equal to the argument . this value is converted to a string of ascii digits in hexadecimal ( base16 ) with no extra leading 0s . if the unsigned magnitude is zero , it is represented by a single zero character ' 0 ' ( ' u0030 ' ) ; otherwise , the first character of the representation of the unsigned magnitude will not be the zero character . the following characters are used as hexadecimal digits : 0123456789abcdef these are the characters ' u0030 ' through ' u0039 ' and ' u \ 0039 ' through ' u0066 ' .
