Java Hex Calculate toHexString(final int i)

Here you can find the source of toHexString(final int i)

Description

to Hex String

License

Open Source License

Declaration

static String toHexString(final int i) 

Method Source Code

//package com.java2s;

public class Main {
    static String toHexString(final int i) {
        return "0x" + Integer.toHexString(i);
    }//from  w ww.  ja  v a 2  s  . c  o  m

    static String toHexString(final long i) {
        return "0x" + Long.toHexString(i);
    }
}

Related

  1. toHexString(final byte[] data)
  2. toHexString(final byte[] data)
  3. toHexString(final byte[] data)
  4. toHexString(final byte[] fieldData)
  5. toHexString(final byte[] raw)
  6. toHexString(final int value)
  7. toHexString(final long num, final char paddingChar, int min, int max)
  8. toHexString(int b)
  9. toHexString(int b)