Here you can find the source of printHexNumber(int n)
Parameter | Description |
---|---|
n | a parameter |
public static String printHexNumber(int n)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w .j av a2 s . com * Returns number in 0xABCDEF-Format * * @param n * @return */ public static String printHexNumber(int n) { return "0x" + Integer.toHexString(n).toUpperCase(); } }