Java Hex Calculate toHexDigit(int i)

Here you can find the source of toHexDigit(int i)

Description

Return the correct hex character for this integer value.

License

Open Source License

Declaration

private static char toHexDigit(int i) 

Method Source Code

//package com.java2s;
/* $This file is distributed under the terms of the license in /doc/license.txt$ */

public class Main {
    /**/*from  w w w  .  ja va 2 s .com*/
     * Return the correct hex character for this integer value.
     */
    private static char toHexDigit(int i) {
        return "0123456789abcdef".charAt(i);
    }
}

Related

  1. toHexDigit(char ch)
  2. toHexDigit(char ch, int index)
  3. toHexDigit(int d)
  4. toHexDigit(int d)
  5. toHexDigit(int h)
  6. toHexDigit(int number)
  7. toHexDigit(int value, int digitPosition)
  8. toHexDigits(byte[] bytes)
  9. toHexDigits(int value)