10进制转16进制
String s = Integer.toHexString(55 & 0xff);
if (s.length()<2){
s=0+s;
}
System.out.println(s);
10进制转16进制
String s = Integer.toHexString(55 & 0xff);
if (s.length()<2){
s=0+s;
}
System.out.println(s);
本文标题:java进制转换
本文链接:https://www.haomeiwen.com/subject/ifdvxktx.html
网友评论