Java Hex Calculate toHexChar(int b)

Here you can find the source of toHexChar(int b)

Description

to Hex Char

License

Apache License

Declaration

public static char toHexChar(int b) 

Method Source Code

//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

public class Main {
    public static char toHexChar(int b) {
        return (char) (b < 10 ? ('0' + b) : ('A' + b - 10));
    }//from   w ww.ja va 2  s  .co m
}

Related

  1. toHexBytes(byte[] bytes)
  2. toHexBytes(byte[] data)
  3. toHexBytes(byte[] toBeConverted)
  4. toHexChar(byte[] bArray)
  5. toHexChar(char ch, StringBuffer sb)
  6. toHexChar(int digit)
  7. toHexChar(int digitValue)
  8. toHexChar(int digitValue)
  9. toHexChar(int i)