注册 登录
编程论坛 JAVA论坛

字符编码

不落夕阳 发布于 2017-10-11 22:00, 1336 次点击
public static void main(String args[]){
        String a="慕课ABC";
        byte[] bytes =a.getBytes();
        for(byte b:bytes){
            System.out.print(" "+b);        
        }
        System.out.println();
        for(byte b:bytes){
            System.out.print(" "+Integer.toHexString(b & 0xff));  //这段代码什么东西啊能解释一下吗
        }
    }
1 回复
#2
kingpc5202017-10-13 14:06
6666666
1