Java Hex Calculate toHex(int i)

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

Description

to Hex

License

Apache License

Declaration

public static String toHex(int i) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    public static String toHex(int i) {
        return "0x" + Integer.toHexString(i);
    }//from  w w  w.j ava 2 s .c  o m
}

Related

  1. toHex(int ch)
  2. toHex(int ch)
  3. toHex(int color)
  4. toHex(int decimalDigit)
  5. toHex(int h, int minDigit)
  6. toHex(int i)
  7. toHex(int i)
  8. toHex(int i, String $default)
  9. toHex(int myByte)