strange Java problem

Status
You're currently viewing only R2P2's posts. Click here to go back to viewing the entire thread.
Not open for further replies.

R2P2

Ars Praefectus
3,783
Subscriptor
getBytes() allocates space on its own, so you could just do "byte bufnew[] = buffer.toString().getBytes();".

Did you check whether the buffer actually contains everything you want it to? It could be that the client isn't getting sent the other info because the info isn't there to send.

You don't really need to call append() 3 times; I think it's a little cleaner to do buffer.append(string1 + string2 + string3); '+' gets compiled to append anyway, but it's a lot shorter. :)
 
Status
You're currently viewing only R2P2's posts. Click here to go back to viewing the entire thread.
Not open for further replies.