Here you can find the source of intToHex(int i)
Parameter | Description |
---|---|
s | A Java int. |
public static String intToHex(int i)
//package com.java2s; /*/*from w w w . ja v a 2 s . c o m*/ * Copyright (C) 2008 Pingtel Corp., certain elements licensed under a Contributor Agreement. * Contributors retain copyright to elements licensed under a Contributor Agreement. * Licensed to the User under the LGPL license. * */ public class Main { /** * Convert an int to a hex representation. * * @param s * A Java int. * @return A hex representation of the int. */ public static String intToHex(int i) { return Integer.toHexString(i); } }