import java.io.*; import java.net.*; class Kirjutaja extends Thread{ BufferedReader sisse; PrintWriter valja; public Kirjutaja(Socket sc){ try{ sisse=new BufferedReader(new InputStreamReader(System.in)); valja=new PrintWriter(sc.getOutputStream(), true); start(); }catch(Exception e){} } public void run(){ boolean veel=true; while(veel){ try{ String s=sisse.readLine(); valja.println(s); }catch(Exception e){veel=false;} } } }