JAVA byte[] 转 String
byte[] RecCount = new byte[6];
// 读文件头
head=randomFile.read(RecCount);
//byte[] 转 String
String cont= new String(RecCount);
本文介绍如何在Java中将byte数组转换成String。通过实例演示了读取文件头并将得到的byte数组使用new String构造方法转换为字符串的过程。
JAVA byte[] 转 String
byte[] RecCount = new byte[6];
// 读文件头
head=randomFile.read(RecCount);
//byte[] 转 String
String cont= new String(RecCount);
3929

被折叠的 条评论
为什么被折叠?
