import java.io.*; import java.net.*; import java.util.Vector; public class Jututuba4{ static Vector kasutajad=new Vector(); public static void main(String argumendid[]) throws IOException{ ServerSocket ss=new ServerSocket(3001); while(true){ new Loim(ss.accept()); } } static class Loim extends Thread{ Socket sc; PrintWriter valja; String kasutajanimi; public Loim(Socket uus_sc){ try{ sc=uus_sc; valja=new PrintWriter(sc.getOutputStream(), true); start(); }catch(Exception e){e.printStackTrace();} } boolean kasKasutajanimiVaba(String uusnimi){ boolean vaba=true; for(int i=0; i