class hexbyte{
static public void main(String args[]){
char hex[]={
'0','1','2','3,'4','5','6','7','8','9','a','b','c','d','e','f'};
byte b=(byte) 0xf1;
System.out.println("b=0x"+hex[(b>>4)&0xof]+hex[b&0x0f]);
}
}
static public void main(String args[]){
char hex[]={
'0','1','2','3,'4','5','6','7','8','9','a','b','c','d','e','f'};
byte b=(byte) 0xf1;
System.out.println("b=0x"+hex[(b>>4)&0xof]+hex[b&0x0f]);
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货