import java.net.*; import java.io.*; public class Fingerinfo{ public static void main(String argumendid[]) throws Exception{ Socket sc=new Socket("lin2.tpu.ee", 79); BufferedReader sisse=new BufferedReader( new InputStreamReader(sc.getInputStream()) ); PrintWriter valja=new PrintWriter(sc.getOutputStream(), true); valja.println("jaagup"); String rida=sisse.readLine(); while(rida!=null){ System.out.println(rida); rida=sisse.readLine(); } } }