package vork; import java.io.*; import java.net.*; import java.util.*; public class Jututuba{ public static void main(String argumendid[]) throws IOException{ ServerSocket ss=new ServerSocket(3001); List kasutajad=Collections.synchronizedList(new LinkedList()); while(true){ Socket sc=ss.accept(); new Kasutaja(sc, kasutajad); } } }