converter - Optimal code in Java to convert Integer value into Hexadecimal -


I need to change the integer value to hexadecimal.

I did something logical, but I want

Edit: Sorry, I forgot to post something -Bilit functions are not allowed to be used.

Assume that you do not want to use built-in hyksstring for any reason One very effective method is:

  Haxcar (int i) from the public static variable (i & amp; = 15; return (i & lt; 10)? (Four) (i + 48 ): (Four) (i + 55);} public static string toheffstring (int n) {char [] for chars = new char [8]; for (int i = 0; i & lt; 8; i ++) {Characters [7-Eye] = TeXx (N); n>> = 4;}; Return new string (character); }  

Comments