我有这个发送字符串或整数,但如果我想发送一个字符串数组,我应该使用什么?
// A string ("Hello, World").
out.write("Hello, World".getBytes());
// An integer (123).
out.write(ByteBuffer.allocate(4).putInt(123).array());
提前致谢
我有这个发送字符串或整数,但如果我想发送一个字符串数组,我应该使用什么?
// A string ("Hello, World").
out.write("Hello, World".getBytes());
// An integer (123).
out.write(ByteBuffer.allocate(4).putInt(123).array());
提前致谢