Java simple client server program

前端 未结 3 1626
盖世英雄少女心
盖世英雄少女心 2021-01-26 00:50

I have written a simple java code to send a message from server to client and the client should display it respectively. The codes are.

Client.java

impor         


        
3条回答
  •  猫巷女王i
    2021-01-26 01:05

    You're reading lines but you aren't writing lines. Add a line terminator to the message, or use newline().

提交回复
热议问题