在Java中将十进制转化成十六进制相比c#要简单的多。Integer var = -1725696;String hex = Integer.toHexString(var);Long lvar = -7794790863941725696;String lhex = Long.toHexString(lvar);十六进制转化成十进制:Integer.parseInt(hex, 16);Long.parseLong(hex, 16); 其他进制转换://十进制转成十六进制: Integer.toHexString(int i) //十进制转成八进制 Integer.toOctalString. Read More
posted @ 2013-07-13 15:08 Merray Views(594) Comments(0) Diggs(0) Edit