import java.net.*; import java.awt.*; import java.io.*; import java.applet.Applet; import java.awt.TextField; public class kell{ public static void main(String argumendid[]) throws Exception{ String kell1=new String(); String kell2=new String(); String kell3=new String(); Socket sc1=new Socket("madli.ut.ee", 13); Socket sc2=new Socket("lin2.tpu.ee", 13); Socket sc3=new Socket("deepthought.ttu.ee", 13); BufferedReader sisse1=new BufferedReader( new InputStreamReader(sc1.getInputStream())); kell1=sisse1.readLine(); kell1="Serveri kell Tartu Ülikoolis-----------> "+kell1; BufferedReader sisse2=new BufferedReader( new InputStreamReader(sc2.getInputStream())); kell2=sisse2.readLine(); kell2="Serveri kell Pedagoogikaülikoolis----> "+kell2; BufferedReader sisse3=new BufferedReader( new InputStreamReader(sc3.getInputStream())); kell3=sisse3.readLine(); kell3="Serveri kell Tehnikaülikoolis---------->"+kell3; Frame f=new Frame("kell"); f.setLayout(new GridLayout(3, 1)); TextField tf1=new TextField(""); TextField tf2=new TextField(""); TextField tf3=new TextField(""); f.add(tf1); f.add(tf2); f.add(tf3); tf1.setText(kell1); tf2.setText(kell2); tf3.setText(kell3); f.setSize(600, 200); f.setLocation(200, 100); f.setVisible(true); } }