How do I convert a byte array with null terminating character to a String in Java?

前端 未结 4 1420
忘掉有多难
忘掉有多难 2020-12-03 13:38

How can I create a String object from a byte array

byte arr[MAX_SIZE];  // Java

where one of the array elements is a C null terminating byt

4条回答
提交回复
热议问题