Java networking | Streams are working only 1 time -
this question exact duplicate of: java networking, strange error 1 answer im working on little chat program , have huge problem , can not solve it. dont know mistake be, me code right. really need help. have 2 threads in server, 1 thread accepting clients , other streams. , thread streams not working right. sends 1 time message client , multiple clients not working. , there strange problem. can send 1 message back, if put joptionpane-message called "sockets empty" in else statement, without doesnt work. here stream thread code: private static runnable streamthread = new runnable() { public void run() { while(true) { if(!(socketlist.isempty())) { for(int = 0; < socketlist.size(); i++) { try { string ...