用java代码 写10进制转HEX 16进制
public class DecimalToHex { public static void main(String[] args) { int decimal = 255; String hex = Integer.toHexString(decimal); System.out.println("Decimal: " + decimal + " --> Hex: " + hex); } }
// Output: Decimal: 255 --> Hex: ff
原文地址: https://www.cveoy.top/t/topic/brDc 著作权归作者所有。请勿转载和采集!