This content has been marked as final. Show 2 replies
I assume in is of type BufferedReader? If so, that is the definition of readLine.
You can use java.util.Scanner to scan until the next delimiter, which you can set.
You can use readUTF/writeUTF defined in interfaces DataInput/DataOut by
using classes DataInputStream/DataOutputStream or ObjectInpuitStream/ObjectOutputStream.
If you are using object stream, you could define any serializable objects you
like for transmission.