Java Integer to Hex asHex(final int value)

Here you can find the source of asHex(final int value)

Description

as Hex

License

Creative Commons License

Declaration

public static String asHex(final int value) 

Method Source Code

//package com.java2s;
/*/*from   w w  w .ja v  a2 s . co  m*/
 * Copyright (c) 2013 - 2015 Naios <naios-dev@live.de>
 *
 * This file is part of WIde which is released under Creative Commons 4.0 (by-nc-sa)
 * See file LICENSE for full license details.
 */

public class Main {
    public static String asHex(final int value) {
        return "0x" + Integer.toHexString(value);
    }
}

Related

  1. asHex(int i)
  2. asHex(int i, int width)
  3. asHex(int val)
  4. convertIntArrayToHexString(int[] arr)