Java Integer to Hex int2hex(int i)

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

Description

inthex

License

GNU General Public License

Declaration

private static String int2hex(int i) 

Method Source Code

//package com.java2s;
// License: GPL. Copyright 2007 by Immanuel Scholz and others

public class Main {
    private static String int2hex(int i) {
        String s = Integer.toHexString(i / 16) + Integer.toHexString(i % 16);
        return s.toUpperCase();
    }/*  www .  java  2s . c  om*/
}

Related

  1. convertInttoHexa(int n)
  2. int2CharHex(int integer)
  3. int2hex(final int a, final StringBuffer str)
  4. int2hex(final int i)
  5. int2hex(int a, StringBuffer str)
  6. int2hex(int i)
  7. int2HexChar(int val)
  8. int2HexChars(final int data)
  9. int2HexString(final int i)