how to use ByteArrayOutputStream and DataOutputStream simultaneously (Java)

后端 未结 6 690
花落未央
花落未央 2020-12-14 22:54

I\'m having quite a problem here, and I think it is because I don\'t understand very much how I should use the API provided by Java.

I need to write an int

6条回答
  •  既然无缘
    2020-12-14 23:20

    The Integer class has a method to get the byte value of an int. Integer.byteValue()

提交回复
热议问题