java-string与byte互换

String s = "245A445A4A000B";
            byte[] data = s.getBytes();//将s转为byte
            String sss = new String(data);//将byte转为string

 

你可能感兴趣的:(java-string与byte互换)