package vork; import java.io.*; import java.net.*; public class Teade1{ public static void main(String argumendid[]) throws IOException{ ServerSocket ss=new ServerSocket(3001); while(true){ Socket sc=ss.accept(); PrintWriter valja=new PrintWriter(sc.getOutputStream(), true); valja.println("Jaagupi arvuti on korras"); System.out.println(sc); sc.close(); } } }